Browse Source

build: pre-shim process in browser build of compiler-sfc

pull/4526/head
Evan You 4 years ago
parent
commit
2217993897
  1. 9
      rollup.config.js

9
rollup.config.js

@ -230,6 +230,15 @@ function createReplacePlugin(
// is targeting Node (SSR)?
__NODE_JS__: isNodeBuild,
// for compiler-sfc browser build inlined deps
...(isBrowserESMBuild
? {
'process.env': '({})',
'process.platform': '""',
'process.stdout': 'null'
}
: {}),
// 2.x compat build
__COMPAT__: isCompatBuild,

Loading…
Cancel
Save