Skip to content

Commit

Permalink
Upgrade rollup. Fix #387.
Browse files Browse the repository at this point in the history
  • Loading branch information
martincizek committed Jun 29, 2021
1 parent b042d32 commit 9ad4c1b
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 209 deletions.
3 changes: 2 additions & 1 deletion config/rollup.config.browser.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import config from './rollup.config'
export default config({
output: {
file: 'lib/turndown.browser.cjs.js',
format: 'cjs'
format: 'cjs',
exports: 'auto'
},
browser: true
})
3 changes: 2 additions & 1 deletion config/rollup.config.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import config from './rollup.config'
export default config({
output: {
file: 'lib/turndown.cjs.js',
format: 'cjs'
format: 'cjs',
exports: 'auto'
},
browser: false
})
2 changes: 1 addition & 1 deletion config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function (config) {
external: ['domino'],
plugins: [
commonjs(),
replace({ 'process.browser': JSON.stringify(!!config.browser) }),
replace({ 'process.browser': JSON.stringify(!!config.browser), preventAssignment: true }),
resolve()
]
}
Expand Down
Loading

0 comments on commit 9ad4c1b

Please sign in to comment.