Rollup CJS changes
This commit is contained in:
parent
5761266260
commit
3eac7f8e6d
1 changed files with 1 additions and 1 deletions
25
rollup.config.mjs
Normal file
25
rollup.config.mjs
Normal file
|
@ -0,0 +1,25 @@
|
|||
import pkg from './package.json' assert { type: 'json' }
|
||||
import json from '@rollup/plugin-json'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
|
||||
export default {
|
||||
input: 'src/ergogen.js',
|
||||
external: ['makerjs', 'js-yaml', 'mathjs', 'kle-serial', 'jszip'],
|
||||
output: {
|
||||
name: 'ergogen',
|
||||
file: 'dist/ergogen.js',
|
||||
format: 'umd',
|
||||
banner: `/*!\n * Ergogen v${pkg.version}\n * https://ergogen.xyz\n */\n`,
|
||||
globals: {
|
||||
'makerjs': 'makerjs',
|
||||
'js-yaml': 'jsyaml',
|
||||
'mathjs': 'math',
|
||||
'kle-serial': 'kle',
|
||||
'jszip': 'jszip'
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
json(),
|
||||
commonjs()
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue