Skip to content

Commit 4e8d459

Browse files
committed
build: tweak flags
1 parent 76a8385 commit 4e8d459

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

rollup.config.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,16 @@ function createReplacePlugin(
169169
`(process.env.NODE_ENV !== 'production')`
170170
: // hard coded dev/prod builds
171171
!isProduction,
172-
// this is only used during tests
173-
__TEST__: isBundlerESMBuild ? `(process.env.NODE_ENV === 'test')` : false,
172+
// this is only used during Vue's internal tests
173+
__TEST__: false,
174174
// If the build is expected to run directly in the browser (global / esm builds)
175175
__BROWSER__: isBrowserBuild,
176176
// is targeting bundlers?
177177
__BUNDLER__: isBundlerESMBuild,
178178
__GLOBAL__: isGlobalBuild,
179179
// is targeting Node (SSR)?
180180
__NODE_JS__: isNodeBuild,
181-
// support options?
182-
// the lean build drops options related code with buildOptions.lean: true
183-
__FEATURE_OPTIONS__: !packageOptions.lean && !process.env.LEAN,
181+
__FEATURE_OPTIONS__: true,
184182
__FEATURE_SUSPENSE__: true,
185183
...(isProduction && isBrowserBuild
186184
? {

scripts/build.js

-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const sourceMap = args.sourcemap || args.s
3131
const isRelease = args.release
3232
const buildTypes = args.t || args.types || isRelease
3333
const buildAllMatching = args.all || args.a
34-
const lean = args.lean || args.l
3534
const commit = execa.sync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
3635

3736
run()
@@ -81,7 +80,6 @@ async function build(target) {
8180
formats ? `FORMATS:${formats}` : ``,
8281
buildTypes ? `TYPES:true` : ``,
8382
prodOnly ? `PROD_ONLY:true` : ``,
84-
lean ? `LEAN:true` : ``,
8583
sourceMap ? `SOURCE_MAP:true` : ``
8684
]
8785
.filter(Boolean)

0 commit comments

Comments
 (0)