mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[uiFramework/docSite] reuse kibana babel config (#11688)
This commit is contained in:
parent
f2f313875c
commit
ff870986b3
3 changed files with 2 additions and 6 deletions
|
@ -204,7 +204,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@elastic/eslint-config-kibana": "0.5.0",
|
"@elastic/eslint-config-kibana": "0.5.0",
|
||||||
"@elastic/eslint-plugin-kibana-custom": "1.0.3",
|
"@elastic/eslint-plugin-kibana-custom": "1.0.3",
|
||||||
"@spalger/babel-presets": "0.3.2",
|
|
||||||
"angular-mocks": "1.4.7",
|
"angular-mocks": "1.4.7",
|
||||||
"auto-release-sinon": "1.0.3",
|
"auto-release-sinon": "1.0.3",
|
||||||
"babel-eslint": "6.1.2",
|
"babel-eslint": "6.1.2",
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"presets": ["react", "@spalger/babel-presets"]
|
|
||||||
}
|
|
|
@ -1,5 +1,5 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const babelPreset = require('../../src/optimize/babel/helpers').webpackPreset;
|
||||||
module.exports = {
|
module.exports = {
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ module.exports = {
|
||||||
loader: 'babel',
|
loader: 'babel',
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
query: {
|
query: {
|
||||||
presets: ['es2015', 'react'],
|
presets: [babelPreset],
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue