Skip to content

Commit

Permalink
browser bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Skinner committed Dec 19, 2024
1 parent 1c3b2ac commit 15ffd87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/browser/rollup.config.npm.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs'
import nodeResolve from '@rollup/plugin-node-resolve'
import replace from '@rollup/plugin-replace'
import terser from '@rollup/plugin-terser'
import typescript from '@rollup/plugin-typescript'

Expand Down Expand Up @@ -43,5 +44,11 @@ export default createRollupConfig({
}
}),
babel({ babelHelpers: 'bundled' }),
replace({
preventAssignment: true,
values: {
'process.env.NODE_ENV': JSON.stringify('production')
},
}),
]
});

0 comments on commit 15ffd87

Please sign in to comment.