Skip to content

Commit

Permalink
Update to latest rollup (+ plugins) versions
Browse files Browse the repository at this point in the history
  • Loading branch information
domchristie committed Mar 5, 2020
1 parent 73a7539 commit 1559f32
Show file tree
Hide file tree
Showing 6 changed files with 178 additions and 386 deletions.
3 changes: 2 additions & 1 deletion config/rollup.config.browser.umd.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.umd.js',
format: 'umd'
format: 'umd',
name: 'TurndownService'
},
browser: true
})
3 changes: 2 additions & 1 deletion config/rollup.config.iife.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: 'dist/turndown.js',
format: 'iife'
format: 'iife',
name: 'TurndownService'
},
browser: true
})
7 changes: 3 additions & 4 deletions config/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import commonjs from 'rollup-plugin-commonjs'
import replace from 'rollup-plugin-replace'
import resolve from 'rollup-plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import replace from '@rollup/plugin-replace'
import resolve from '@rollup/plugin-node-resolve'

export default function (config) {
return {
input: 'src/turndown.js',
name: 'TurndownService',
output: config.output,
external: ['jsdom'],
plugins: [
Expand Down
3 changes: 2 additions & 1 deletion config/rollup.config.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import config from './rollup.config'
export default config({
output: {
file: 'lib/turndown.umd.js',
format: 'umd'
format: 'umd',
name: 'TurndownService'
}
})
Loading

0 comments on commit 1559f32

Please sign in to comment.