mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 14:50:03 -04:00
feat: add terser to rollup plugins
This commit is contained in:
parent
c3d2e71f23
commit
3fbefd2b1b
3 changed files with 1301 additions and 5 deletions
1295
package-lock.json
generated
Normal file
1295
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -28,13 +28,14 @@
|
|||
],
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-inject": "^5.0.5",
|
||||
"@rollup/plugin-replace": "^5.0.5",
|
||||
"esbuild": "^0.19.11",
|
||||
"esbuild-plugin-d.ts": "^1.2.2",
|
||||
"rollup": "^4.9.6",
|
||||
"rollup-plugin-typescript2": "^0.36.0",
|
||||
"@rollup/plugin-replace": "^5.0.5"
|
||||
"rollup-plugin-typescript2": "^0.36.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"uuid": "^9.0.1"
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ import replace from '@rollup/plugin-replace';
|
|||
import { fileURLToPath } from 'node:url';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import typescript from 'rollup-plugin-typescript2';
|
||||
|
||||
import terser from '@rollup/plugin-terser';
|
||||
const pkg = JSON.parse(await readFile('package.json'));
|
||||
process.env.BARE_MUX_VERSION = pkg.version;
|
||||
|
||||
|
@ -47,7 +47,7 @@ const configs = [
|
|||
sourcemap: true,
|
||||
exports: 'named',
|
||||
},
|
||||
plugins: commonPlugins(),
|
||||
plugins: [commonPlugins(),terser()],
|
||||
},
|
||||
// require
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ const configs = [
|
|||
sourcemap: true,
|
||||
exports: 'auto',
|
||||
},
|
||||
plugins: commonPlugins(),
|
||||
plugins: [commonPlugins(),terser()],
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue