Skip to content

Making a full bundle #2843

Answered by alemscoder
alemscoder asked this question in Q&A
Discussion options

You must be logged in to vote

I solved, I use Rollup, here the config file:
`import {nodeResolve} from '@rollup/plugin-node-resolve';
import replace from '@rollup/plugin-replace';
import terser from '@rollup/plugin-terser';

export default {
input: 'src/spectrum-web-components.js',
output: {
file: 'output/spectrum-web-components-full-bundle.js',
format: 'esm',
inlineDynamicImports: true
},
plugins: [
terser(),
nodeResolve(),
replace({
include: 'node_modules/focus-visible/dist/focus-visible.js',
values: {
'this': 'undefined'
},
preventAssignment: true
})
]
}`

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by castastrophe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant