diff --git a/config/example.json b/config/example.json index d034d67b76..ee41151bf4 100644 --- a/config/example.json +++ b/config/example.json @@ -35,6 +35,7 @@ "extra_annotation_name": [ "api", "observable" ], + "rewrite_polyfills": "false", "compilation_level": "ADVANCED", "warning_level": "VERBOSE", "output_wrapper": "(function(){%output%})();", diff --git a/config/examples-all.json b/config/examples-all.json index 3544621ee9..c66a133860 100644 --- a/config/examples-all.json +++ b/config/examples-all.json @@ -33,6 +33,7 @@ "extra_annotation_name": [ "api", "observable" ], + "rewrite_polyfills": "false", "compilation_level": "ADVANCED", "warning_level": "VERBOSE", "output_wrapper": "(function(){%output%})();", diff --git a/config/ol.json b/config/ol.json index 90b8893824..d0479e5b70 100644 --- a/config/ol.json +++ b/config/ol.json @@ -27,6 +27,7 @@ "extra_annotation_name": [ "api", "observable" ], + "rewrite_polyfills": "false", "compilation_level": "ADVANCED", "warning_level": "VERBOSE", "use_types_for_optimization": true, diff --git a/doc/tutorials/closure.md b/doc/tutorials/closure.md index 7221445bef..6e3f26cafd 100644 --- a/doc/tutorials/closure.md +++ b/doc/tutorials/closure.md @@ -178,6 +178,7 @@ The minimum config file looks like this: "extra_annotation_name": [ "api", "observable" ], + "rewrite_polyfills": "false", "compilation_level": "ADVANCED", "warning_level": "VERBOSE", "output_wrapper": "(function(){%output%})();", diff --git a/externs/closure-compiler.js b/externs/closure-compiler.js index 973d47cf54..763c409f16 100644 --- a/externs/closure-compiler.js +++ b/externs/closure-compiler.js @@ -7,23 +7,3 @@ * * @externs */ - - -// see https://github.com/google/closure-compiler/pull/1991 - -/** - * @param {*} arg - * @return {boolean} - * @nosideeffects - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView - */ -ArrayBuffer.isView = function(arg) {}; - - -// see https://github.com/google/closure-compiler/pull/1206 - -/** - * @type {string} - * @see http://www.w3.org/TR/pointerevents/#the-touch-action-css-property - */ -CSSProperties.prototype.touchAction; diff --git a/package.json b/package.json index 8da150a2a4..2e9381458f 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "dependencies": { "async": "2.1.4", "browserify": "13.1.1", - "closure-util": "1.15.1", + "closure-util": "1.16.0", "derequire": "2.0.6", "fs-extra": "1.0.0", "glob": "7.1.1",