mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 06:40:02 -04:00
remove terser
This commit is contained in:
parent
ad02459a57
commit
ea21f222be
1 changed files with 5 additions and 7 deletions
|
@ -1,11 +1,9 @@
|
|||
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(
|
||||
|
@ -43,11 +41,11 @@ const configs = [
|
|||
{
|
||||
input: './src/index.ts',
|
||||
output: {
|
||||
file: 'dist/index.js',
|
||||
format: 'umd',
|
||||
name: 'BareMux',
|
||||
sourcemap: true,
|
||||
exports: 'named',
|
||||
file: 'dist/index.js',
|
||||
format: 'umd',
|
||||
name: 'BareMux',
|
||||
sourcemap: true,
|
||||
exports: 'named',
|
||||
},
|
||||
plugins: commonPlugins(),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue