From: Evan You Date: Sun, 5 Sep 2021 21:19:49 +0000 (-0400) Subject: build: pre-shim process in browser build of compiler-sfc X-Git-Tag: v3.2.9~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2217993897eb601a10db45bd3d94b23b60557d65;p=thirdparty%2Fvuejs%2Fcore.git build: pre-shim process in browser build of compiler-sfc --- diff --git a/rollup.config.js b/rollup.config.js index 24242dba52..65a3678e77 100644 --- a/rollup.config.js +++ b/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,