Skip to content

Commit

Permalink
maint/build ~ silence '@rollup/plugin-replace' complaint about 'preve…
Browse files Browse the repository at this point in the history
…ntAssignment' default
  • Loading branch information
rivy committed Feb 22, 2021
1 parent 2ac8802 commit 93ad138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .rollup.config.types.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default [
output: [{ file: './dist/types/mod.cjs.d.ts', format: 'cjs' }],
plugins: [
dts(),
replace({ 'export default ': 'export = ' }), // hack correct export for CJS default export
replace({ preventAssignment: true, values: { 'export default ': 'export = ' } }), // hack correct export for CJS default export
],
},
];

0 comments on commit 93ad138

Please sign in to comment.