mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add babel-plugin-styled-components to webpack config (#52862)
This commit is contained in:
parent
21334e7b15
commit
0c6516f1bc
5 changed files with 24 additions and 8 deletions
|
@ -355,7 +355,7 @@
|
|||
"@types/semver": "^5.5.0",
|
||||
"@types/sinon": "^7.0.13",
|
||||
"@types/strip-ansi": "^3.0.0",
|
||||
"@types/styled-components": "^4.4.0",
|
||||
"@types/styled-components": "^4.4.1",
|
||||
"@types/supertest": "^2.0.5",
|
||||
"@types/supertest-as-promised": "^2.0.38",
|
||||
"@types/testing-library__react": "^9.1.2",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"@babel/preset-typescript": "^7.3.3",
|
||||
"babel-plugin-add-module-exports": "^1.0.2",
|
||||
"babel-plugin-filter-imports": "^3.0.0",
|
||||
"babel-plugin-styled-components": "^1.10.6",
|
||||
"babel-plugin-transform-define": "^1.3.1",
|
||||
"babel-plugin-typescript-strip-namespaces": "^1.1.1"
|
||||
}
|
||||
|
|
|
@ -33,6 +33,12 @@ module.exports = () => {
|
|||
plugins: [
|
||||
require.resolve('@babel/plugin-transform-modules-commonjs'),
|
||||
require.resolve('@babel/plugin-syntax-dynamic-import'),
|
||||
]
|
||||
[
|
||||
require.resolve('babel-plugin-styled-components'),
|
||||
{
|
||||
fileName: false,
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
||||
};
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
"@types/reduce-reducers": "^0.3.0",
|
||||
"@types/redux-actions": "^2.2.1",
|
||||
"@types/sinon": "^7.0.13",
|
||||
"@types/styled-components": "^4.4.0",
|
||||
"@types/styled-components": "^4.4.1",
|
||||
"@types/supertest": "^2.0.5",
|
||||
"@types/tar-fs": "^1.16.1",
|
||||
"@types/tinycolor2": "^1.4.1",
|
||||
|
|
19
yarn.lock
19
yarn.lock
|
@ -3420,6 +3420,14 @@
|
|||
resolved "https://registry.yarnpkg.com/@types/hoek/-/hoek-4.1.3.tgz#d1982d48fb0d2a0e5d7e9d91838264d8e428d337"
|
||||
integrity sha1-0ZgtSPsNKg5dfp2Rg4Jk2OQo0zc=
|
||||
|
||||
"@types/hoist-non-react-statics@*":
|
||||
version "3.3.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
|
||||
integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
|
||||
dependencies:
|
||||
"@types/react" "*"
|
||||
hoist-non-react-statics "^3.3.0"
|
||||
|
||||
"@types/indent-string@^3.0.0":
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/indent-string/-/indent-string-3.0.0.tgz#9ebb391ceda548926f5819ad16405349641b999f"
|
||||
|
@ -4012,11 +4020,12 @@
|
|||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/styled-components@^4.4.0":
|
||||
version "4.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-4.4.0.tgz#15a3d59533fd3a5bd013db4a7c4422ec542c59d2"
|
||||
integrity sha512-QFl+w3hQJNHE64Or3PXMFpC3HAQDiuQLi5o9m1XPEwYWfgCZtAribO5ksjxnO8U0LG8Parh0ESCgVxo4VfxlHg==
|
||||
"@types/styled-components@^4.4.1":
|
||||
version "4.4.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-4.4.1.tgz#bc40cf5ce0708032f4b148b04ab3c470d3e74026"
|
||||
integrity sha512-cQXT4pkAkM0unk/s26UBrJx9RmJ2rNUn2aDTgzp1rtu+tTkScebE78jbxNWhlqkA43XF3d41CcDlyl9Ldotm2g==
|
||||
dependencies:
|
||||
"@types/hoist-non-react-statics" "*"
|
||||
"@types/react" "*"
|
||||
"@types/react-native" "*"
|
||||
csstype "^2.2.0"
|
||||
|
@ -6184,7 +6193,7 @@ babel-plugin-react-docgen@^3.0.0:
|
|||
resolved "https://registry.yarnpkg.com/babel-plugin-require-context-hook-babel7/-/babel-plugin-require-context-hook-babel7-1.0.0.tgz#1273d4cee7e343d0860966653759a45d727e815d"
|
||||
integrity sha512-kez0BAN/cQoyO1Yu1nre1bQSYZEF93Fg7VQiBHFfMWuaZTy7vJSTT4FY68FwHTYG53Nyt0A7vpSObSVxwweQeQ==
|
||||
|
||||
"babel-plugin-styled-components@>= 1":
|
||||
"babel-plugin-styled-components@>= 1", babel-plugin-styled-components@^1.10.6:
|
||||
version "1.10.6"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.10.6.tgz#f8782953751115faf09a9f92431436912c34006b"
|
||||
integrity sha512-gyQj/Zf1kQti66100PhrCRjI5ldjaze9O0M3emXRPAN80Zsf8+e1thpTpaXJXVHXtaM4/+dJEgZHyS9Its+8SA==
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue