build: pre-shim process in browser build of compiler-sfc
This commit is contained in:
parent
815bfcffae
commit
2217993897
@ -230,6 +230,15 @@ function createReplacePlugin(
|
|||||||
// is targeting Node (SSR)?
|
// is targeting Node (SSR)?
|
||||||
__NODE_JS__: isNodeBuild,
|
__NODE_JS__: isNodeBuild,
|
||||||
|
|
||||||
|
// for compiler-sfc browser build inlined deps
|
||||||
|
...(isBrowserESMBuild
|
||||||
|
? {
|
||||||
|
'process.env': '({})',
|
||||||
|
'process.platform': '""',
|
||||||
|
'process.stdout': 'null'
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
|
||||||
// 2.x compat build
|
// 2.x compat build
|
||||||
__COMPAT__: isCompatBuild,
|
__COMPAT__: isCompatBuild,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user