Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit db06917

Browse files
committed
Generate both min and non-min esm output
There is little reason to minify ESM outputs because it's _exceedingly_ likely that consumers of ESM will already be doing their own minification.
1 parent d00a7fd commit db06917

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/optimizely-sdk/rollup.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ const cjsBuildFor = (platform) => ({
4040

4141
const esmBundle = {
4242
...cjsBuildFor('browser'),
43-
output: {
43+
output: [{
44+
format: 'es',
45+
file: 'dist/optimizely.browser.es.js',
46+
}, {
4447
format: 'es',
4548
file: 'dist/optimizely.browser.es.min.js',
4649
plugins: [ terser() ]
47-
}
50+
}]
4851
}
4952

5053
const esmDevBundle = {

0 commit comments

Comments
 (0)