Skip to content

Commit 1183d39

Browse files
package: Replace rollup-plugin-babel-minify with rollup-plugin-terser.
rollup-plugin-babel-minify is deprecated and it was causing and issue where after minification some of the IE polyfills were not being minified correctly and were unavaible in the final js file.
1 parent abc85b9 commit 1183d39

File tree

4 files changed

+82
-268
lines changed

4 files changed

+82
-268
lines changed

config/global.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ declare module 'rollup-plugin-babel' {
2323
const plugin: RollupPluginImpl<Options>;
2424
export default plugin;
2525
}
26-
declare module 'rollup-plugin-babel-minify' {
27-
export interface Options {}
28-
const plugin: RollupPluginImpl<Options>;
29-
export default plugin;
30-
}
3126

3227
// =====================∫
3328
// missing library types

config/rollup.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import nodeResolve from '@rollup/plugin-node-resolve';
44
import json from '@rollup/plugin-json';
55
import commonjs from '@rollup/plugin-commonjs';
66
import babel from 'rollup-plugin-babel';
7-
import minify from 'rollup-plugin-babel-minify';
7+
import { terser } from 'rollup-plugin-terser';
88

99
import pkg from '../package.json';
1010

@@ -97,9 +97,9 @@ const umdConfig = createUmdConfig({
9797
const umdConfigMin = createUmdConfig({
9898
outputFile: pkg.mainMin,
9999
extraPlugins: [
100-
minify({
101-
comments: false,
102-
sourceMap: true,
100+
terser({
101+
ecma: 5,
102+
safari10: true, // This also includes workarounds for bugs in Safari 11
103103
}),
104104
],
105105
});

0 commit comments

Comments
 (0)