]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build: tweak flags
authorEvan You <yyx990803@gmail.com>
Tue, 24 Mar 2020 21:57:27 +0000 (17:57 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 24 Mar 2020 21:57:27 +0000 (17:57 -0400)
rollup.config.js
scripts/build.js

index 7a35f0cba5949ef071255846cdf0edef2e04032c..2176401efb8221e9a1c20cefbb75e96c9b9d4f29 100644 (file)
@@ -169,8 +169,8 @@ function createReplacePlugin(
         `(process.env.NODE_ENV !== 'production')`
       : // hard coded dev/prod builds
         !isProduction,
-    // this is only used during tests
-    __TEST__: isBundlerESMBuild ? `(process.env.NODE_ENV === 'test')` : false,
+    // this is only used during Vue's internal tests
+    __TEST__: false,
     // If the build is expected to run directly in the browser (global / esm builds)
     __BROWSER__: isBrowserBuild,
     // is targeting bundlers?
@@ -178,9 +178,7 @@ function createReplacePlugin(
     __GLOBAL__: isGlobalBuild,
     // is targeting Node (SSR)?
     __NODE_JS__: isNodeBuild,
-    // support options?
-    // the lean build drops options related code with buildOptions.lean: true
-    __FEATURE_OPTIONS__: !packageOptions.lean && !process.env.LEAN,
+    __FEATURE_OPTIONS__: true,
     __FEATURE_SUSPENSE__: true,
     ...(isProduction && isBrowserBuild
       ? {
index 063acd51ff19b17aef4f161022083ec224a6fa77..595c0799e4af3d78fefa16d56eb30c82b3639f81 100644 (file)
@@ -31,7 +31,6 @@ const sourceMap = args.sourcemap || args.s
 const isRelease = args.release
 const buildTypes = args.t || args.types || isRelease
 const buildAllMatching = args.all || args.a
-const lean = args.lean || args.l
 const commit = execa.sync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
 
 run()
@@ -81,7 +80,6 @@ async function build(target) {
         formats ? `FORMATS:${formats}` : ``,
         buildTypes ? `TYPES:true` : ``,
         prodOnly ? `PROD_ONLY:true` : ``,
-        lean ? `LEAN:true` : ``,
         sourceMap ? `SOURCE_MAP:true` : ``
       ]
         .filter(Boolean)