Iterated on Webpack configs until I got the inline and shell packages seemingly working

This commit is contained in:
Brian Vaughn
2019-08-14 09:24:35 -07:00
parent 7e94fae1e9
commit efa6aa9b4d
22 changed files with 4320 additions and 216 deletions
+18 -1
View File
@@ -20,6 +20,23 @@
},
"dependencies": {},
"devDependencies": {
"cross-env": "^3.1.4"
"@babel/core": "^7.1.6",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-transform-flow-strip-types": "^7.1.6",
"@babel/plugin-transform-react-jsx-source": "^7.2.0",
"@babel/preset-env": "^7.1.6",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-core": "^7.0.0-bridge",
"babel-eslint": "^9.0.0",
"babel-jest": "^24.7.1",
"babel-loader": "^8.0.4",
"cross-env": "^3.1.4",
"css-loader": "^1.0.1",
"raw-loader": "^3.1.0",
"style-loader": "^0.23.1",
"webpack": "^4.26.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.3.1"
}
}
@@ -29,11 +29,6 @@ module.exports = {
library: '[name]',
libraryTarget: 'commonjs2',
},
resolve: {
alias: {
src: resolve(__dirname, '../../src'),
},
},
externals: {
react: 'react',
'react-dom': 'react-dom',
@@ -54,7 +49,12 @@ module.exports = {
test: /\.js$/,
loader: 'babel-loader',
options: {
configFile: resolve(__dirname, '../../babel.config.js'),
configFile: resolve(
__dirname,
'..',
'react-devtools-shared',
'babel.config.js',
),
},
},
{