refactor: further tweak compiler layers

This commit is contained in:
Evan You
2019-09-17 11:57:25 -04:00
parent 6c14b409ca
commit 132cef9063
31 changed files with 288 additions and 269 deletions

View File

@@ -134,9 +134,8 @@ function createReplacePlugin(isProduction, isBunlderESMBuild, isBrowserBuild) {
`process.env.NODE_ENV !== 'production'`
: // hard coded dev/prod builds
!isProduction,
// show production tip?
// should only do this for dev AND browser-targeting builds.
__FEATURE_PRODUCTION_TIP__: !isProduction && isBrowserBuild,
// If the build is expected to run directly in the browser (global / esm-browser builds)
__BROWSER__: isBrowserBuild,
// support options?
// the lean build drops options related code with buildOptions.lean: true
__FEATURE_OPTIONS__: !packageOptions.lean,