Skip to content
Discussion options

You must be logged in to vote

I found a solution

entry: { index: entry, vars: path.resolve(__dirname, './src/vars.js'), }, output: { // ...output, path: path.resolve(path.join(__dirname, "./dist")), filename: '[name].js', chunkFilename: '[name].js', library: 'bootstrap-xditor', // add this line libraryTarget: 'umd', // add this line globalObject: "typeof globalThis !== 'undefined' ? globalThis : (typeof window !== 'undefined' ? window : this)" // add this line },

i try to spread with ...output. but return a error but adding this lines WORKS , i really don`t understand why, i am starting code so could be something silly ... so resolved

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jcenlo
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