@movable/studio-framework-build-config 3.0.0 → 3.1.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/studio-framework-build-config",
3
- "version": "3.0.0",
3
+ "version": "3.1.0-canary.0",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Movable Ink",
@@ -13,8 +13,9 @@
13
13
  "@babel/plugin-transform-runtime": "^7.13.15",
14
14
  "@babel/preset-env": "^7.20.2",
15
15
  "@babel/preset-react": "^7.14.5",
16
- "@movable/rollup-plugin-manifest-merger": "^3.0.0",
17
- "@movable/rollup-plugin-package-manifest-validator": "^3.0.0",
16
+ "@movable/rollup-plugin-manifest-merger": "^3.1.0-canary.0",
17
+ "@movable/rollup-plugin-package-manifest-validator": "^3.1.0-canary.0",
18
+ "@rollup/plugin-terser": "^0.4.0",
18
19
  "@rollup/plugin-url": "^6.0.0",
19
20
  "esbuild": "^0.15.14",
20
21
  "glob": "^7.1.7",
@@ -27,7 +28,6 @@
27
28
  "qunit": "^2.16.0",
28
29
  "rollup": "^2.52.2",
29
30
  "rollup-plugin-babel": "^4.3.3",
30
- "rollup-plugin-babel-minify": "^10.0.0",
31
31
  "rollup-plugin-commonjs": "^10.1.0",
32
32
  "rollup-plugin-copy-assets": "^2.0.3",
33
33
  "rollup-plugin-image": "^1.0.2",
@@ -45,5 +45,5 @@
45
45
  "volta": {
46
46
  "extends": "../../package.json"
47
47
  },
48
- "gitHead": "2b832ab5a64597cffdc7f1225bbbdf53c6299994"
48
+ "gitHead": "ce8a4be9c3ee254bbd4f958f61225d42220fa19a"
49
49
  }
@@ -7,7 +7,7 @@ const postcss = require('rollup-plugin-postcss');
7
7
  const image = require('rollup-plugin-image');
8
8
  const replace = require('rollup-plugin-replace');
9
9
  const copy = require('rollup-plugin-copy-assets');
10
- const minify = require('rollup-plugin-babel-minify');
10
+ const terser = require('@rollup/plugin-terser');
11
11
  const json = require('rollup-plugin-json');
12
12
  const { manifestMerger } = require('@movable/rollup-plugin-manifest-merger');
13
13
  const { importExportToGlobal, dependenciesOnly } = require('rollup-split-index');
@@ -44,7 +44,13 @@ module.exports = function rollupConfig(passedConfig = {}) {
44
44
  'process.env.NODE_ENV': JSON.stringify('production')
45
45
  }),
46
46
  config.dataLoader ? buildDataLoader(config.dataLoader) : null,
47
- config.minify ? minify({ comments: false, sourceMap: true }) : null,
47
+ config.minify
48
+ ? terser({
49
+ ecma: 2022,
50
+ sourceMap: true,
51
+ format: { comments: false, ecma: 2022 }
52
+ })
53
+ : null,
48
54
  config.serve ? serve() : null
49
55
  ].filter(Boolean),
50
56
  output: {