mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Co-authored-by: spalger <spalger@users.noreply.github.com> # Conflicts: # packages/kbn-optimizer/src/worker/webpack.config.ts
This commit is contained in:
parent
a8938a34bf
commit
31c7b4cd55
4 changed files with 20 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
"babel-plugin-add-module-exports": "^1.0.2",
|
||||
"babel-plugin-styled-components": "^1.10.7",
|
||||
"babel-plugin-transform-define": "^1.3.1",
|
||||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
||||
"react-is": "^16.8.0",
|
||||
"styled-components": "^5.1.0"
|
||||
}
|
||||
|
|
|
@ -40,5 +40,18 @@ module.exports = () => {
|
|||
},
|
||||
],
|
||||
],
|
||||
env: {
|
||||
production: {
|
||||
plugins: [
|
||||
[
|
||||
require.resolve('babel-plugin-transform-react-remove-prop-types'),
|
||||
{
|
||||
mode: 'remove',
|
||||
removeImport: true,
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
@ -198,6 +198,7 @@ export function getWebpackConfig(bundle: Bundle, bundleRefs: BundleRefs, worker:
|
|||
loader: 'babel-loader',
|
||||
options: {
|
||||
babelrc: false,
|
||||
envName: worker.dist ? 'production' : 'development',
|
||||
presets: [BABEL_PRESET_PATH],
|
||||
},
|
||||
},
|
||||
|
|
|
@ -7026,6 +7026,11 @@ babel-plugin-transform-property-literals@^6.9.4:
|
|||
dependencies:
|
||||
esutils "^2.0.2"
|
||||
|
||||
babel-plugin-transform-react-remove-prop-types@^0.4.24:
|
||||
version "0.4.24"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a"
|
||||
integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==
|
||||
|
||||
babel-plugin-transform-regexp-constructors@^0.4.3:
|
||||
version "0.4.3"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.4.3.tgz#58b7775b63afcf33328fae9a5f88fbd4fb0b4965"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue