Skip to content

Commit

Permalink
fix: fix name of global variable in UMD builds
Browse files Browse the repository at this point in the history
Closes #560
  • Loading branch information
jonahsnider committed Nov 21, 2022
1 parent 7091635 commit e5d7354
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/convert/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ const config = [
typescript({incremental: true}),
replace({values: {...flags.prod, ...flags.es3}, preventAssignment: true}),
getBabelOutputPlugin({
presets: [['@babel/env', {modules: 'umd'}]],
presets: [
[
'@babel/env',
{
modules: 'umd',
},
],
],
filename: 'convert.js',
}),
terser(terserConfig),
],
Expand All @@ -85,6 +93,7 @@ const config = [
replace({values: {...flags.dev, ...flags.es3}, preventAssignment: true}),
getBabelOutputPlugin({
presets: [['@babel/env', {modules: 'umd'}]],
filename: 'convert.js',
}),
terser(terserConfig),
],
Expand Down

0 comments on commit e5d7354

Please sign in to comment.