Skip to content

Commit ea91cfd

Browse files
authored
fix(build): noisy webview error #2659
Problem: Webpack was using CJS as the library target for bundled browser code This caused a harmless error message to show up in the console Solution: Use `this` assignment as the library target
1 parent 03ad487 commit ea91cfd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ const vueConfig = {
116116
name: 'vue',
117117
target: 'web',
118118
entry: createVueEntries(),
119+
output: {
120+
...baseConfig.output,
121+
libraryTarget: 'this',
122+
},
119123
module: {
120124
rules: baseConfig.module.rules.concat(
121125
{

0 commit comments

Comments
 (0)