insomnia/packages/insomnia-components/webpack/webpack.common.js
Opender Singh 2586ee5ad7
Bundling improvements for insomnia-components (#2297)
* Bundling improvements for insomnia-components

* Update

* Update
2020-06-17 07:46:13 +12:00

26 lines
506 B
JavaScript

const path = require('path');
module.exports = {
entry: {index: './index.js'},
target: 'web',
output: {
path: path.resolve(__dirname, '../dist'),
filename: '[name].js',
sourceMapFilename: '[name].js.map',
library: 'insomniaComponents',
libraryTarget: 'commonjs2',
},
externals: ['react', 'react-dom'],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
},
},
],
},
};