Merge pull request #737 from GoogleChromeLabs/fix-process-syntaxerror

Fix SyntaxError for `{}.nextTick`
This commit is contained in:
Surma
2020-04-01 17:14:46 +01:00
committed by GitHub

View File

@@ -268,7 +268,7 @@ module.exports = async function (_, env) {
VERSION: JSON.stringify(VERSION),
// We set node.process=false later in this config.
// Here we make sure if (process && process.foo) still works:
process: '{}'
process: '({})'
}),
// Copying files via Webpack allows them to be served dynamically by `webpack serve`