Skip to content

Commit d87a2e2

Browse files
committed
Remove terser
1 parent bf0ab92 commit d87a2e2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/webchannel-wrapper/gulpfile.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const sourcemaps = require('gulp-sourcemaps');
2424
const { resolve } = require('path');
2525
const commonjs = require('rollup-plugin-commonjs');
2626
const rollupSourcemaps = require('rollup-plugin-sourcemaps');
27-
const { terser } = require('rollup-plugin-terser');
2827
const typescriptPlugin = require('rollup-plugin-typescript2');
2928
const typescript = require('typescript');
3029

@@ -113,8 +112,6 @@ function createRollupTask({
113112
})
114113
);
115114
}
116-
// Typescript step unminifies minified Closure output.
117-
plugins.push(terser());
118115
const inputOptions = {
119116
input: inputPath,
120117
plugins
@@ -123,8 +120,9 @@ function createRollupTask({
123120
const outputOptions = {
124121
file: `dist/index${outputExtension ? '.' : ''}${outputExtension}.js`,
125122
format,
126-
sourcemap: true
127-
// exports: 'named'
123+
sourcemap: true,
124+
// Prevents warning when compiling CJS that there are named and default exports together.
125+
exports: 'named'
128126
};
129127

130128
const bundle = await rollup.rollup(inputOptions);

packages/webchannel-wrapper/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"rollup": "2.6.1",
2424
"rollup-plugin-commonjs": "10.1.0",
2525
"rollup-plugin-sourcemaps": "0.5.0",
26-
"rollup-plugin-terser": "5.3.0",
2726
"rollup-plugin-typescript2": "0.27.0",
2827
"typescript": "3.8.3"
2928
},

0 commit comments

Comments
 (0)