diff --git a/packages/babel-minify/src/index.js b/packages/babel-minify/src/index.js index 6b116da88..2e96c4c96 100644 --- a/packages/babel-minify/src/index.js +++ b/packages/babel-minify/src/index.js @@ -12,7 +12,7 @@ module.exports = function babelMinify( inputSourceMap, sourceMaps = false, sourceType = "script", - comments = /^\**!|@preserve|@license|@cc_on/, + comments = /^\**!|@preserve|@licen(c|s)e|@cc_on/, // to override the default babelCore used babel = babelCore, diff --git a/packages/gulp-babel-minify/src/index.js b/packages/gulp-babel-minify/src/index.js index eb3e638e4..713e67988 100644 --- a/packages/gulp-babel-minify/src/index.js +++ b/packages/gulp-babel-minify/src/index.js @@ -13,7 +13,7 @@ function gulpBabelMinify( { babel = babelCore, minifyPreset = babelPresetMinify, - comments = /preserve|licen(s|c)e/, + comments = /^\**!|@preserve|@licen(c|s)e|@cc_on/, sourceType = "script" } = {} ) {