@parcel/babel-preset
Advanced tools
Comparing version 2.0.0-alpha.1.1 to 2.0.0-alpha.2
15
index.js
@@ -18,3 +18,16 @@ module.exports = () => ({ | ||
require('@babel/plugin-proposal-optional-chaining') | ||
] | ||
], | ||
env: { | ||
production: { | ||
plugins: [ | ||
// Inline the value of PARCEL_BUILD_ENV during production builds so that | ||
// it can be removed through dead code elimination below | ||
[ | ||
'babel-plugin-transform-inline-environment-variables', | ||
{include: ['PARCEL_BUILD_ENV']} | ||
], | ||
'babel-plugin-minify-dead-code-elimination' | ||
] | ||
} | ||
} | ||
}); |
{ | ||
"name": "@parcel/babel-preset", | ||
"version": "2.0.0-alpha.1.1", | ||
"version": "2.0.0-alpha.2", | ||
"license": "MIT", | ||
@@ -12,2 +12,4 @@ "dependencies": { | ||
"@babel/preset-react": "^7.0.0", | ||
"babel-plugin-minify-dead-code-elimination": "^0.5.0", | ||
"babel-plugin-transform-inline-environment-variables": "^0.4.3", | ||
"read-pkg-up": "^4.0.0" | ||
@@ -18,3 +20,3 @@ }, | ||
}, | ||
"gitHead": "8f9c49c1c53753b1139501cc4090cd4b1ab5ac0b", | ||
"gitHead": "aa2619af0a50fecbab024d30521391814560337f", | ||
"publishConfig": { | ||
@@ -21,0 +23,0 @@ "access": "public" |
2612
32
9
+ Addedbabel-plugin-transform-inline-environment-variables@^0.4.3
+ Addedbabel-helper-evaluate-path@0.5.0(transitive)
+ Addedbabel-helper-mark-eval-scopes@0.4.3(transitive)
+ Addedbabel-helper-remove-or-void@0.4.3(transitive)
+ Addedbabel-plugin-minify-dead-code-elimination@0.5.2(transitive)
+ Addedbabel-plugin-transform-inline-environment-variables@0.4.4(transitive)
+ Addedlodash@4.17.21(transitive)