Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable webpack global polyfill #163

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Disable webpack global polyfill
Vue requires an global polyfill for the full build (with compiler) to
compile templates in runtime. Since this project compiles templates
during build with vue-loader, this polyfill is not needed. This will fix
errors in CSP environments that do not allow 'unsafe-eval'.
  • Loading branch information
Edvin Hultberg committed Oct 12, 2018
commit f0c636d149fbaa016056c64e3e9e272effe2a768
5 changes: 5 additions & 0 deletions build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,10 @@ module.exports = {
/handsontable\.(full\.)?js/,
/plotly\.js/
]
},

node: {
// prevent webpack from injecting an global polyfill that includes Function(return this) and eval(this)
global: false
}
}