mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-13 22:30:03 -04:00
add readystate values to prototype and start minifying bare-mux builds
This commit is contained in:
parent
88ff83bfaf
commit
c299c00a36
3 changed files with 15 additions and 6 deletions
|
@ -1,9 +1,11 @@
|
|||
import inject from '@rollup/plugin-inject';
|
||||
import terser from '@rollup/plugin-terser';
|
||||
import typescript from 'rollup-plugin-typescript2';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const commonPlugins = () => [
|
||||
typescript(),
|
||||
terser(),
|
||||
inject(
|
||||
Object.fromEntries(
|
||||
['fetch', 'Request', 'Response', 'WebSocket', 'XMLHttpRequest', 'SharedWorker', 'localStorage', 'serviceWorker'].map(
|
||||
|
@ -14,6 +16,7 @@ const commonPlugins = () => [
|
|||
)
|
||||
)
|
||||
),
|
||||
|
||||
];
|
||||
|
||||
const configs = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue