insomnia/packages/insomnia-components/webpack.config.js

27 lines
512 B
JavaScript
Raw Normal View History

2020-04-26 20:33:39 +00:00
const path = require('path');
module.exports = {
entry: { index: './index.js' },
target: 'web',
mode: 'production',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
library: 'insomniaComponents',
libraryTarget: 'commonjs2',
},
externals: ['react', 'react-dom'],
2020-04-26 20:33:39 +00:00
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
},
},
],
},
};