mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
2586ee5ad7
* Bundling improvements for insomnia-components * Update * Update
26 lines
506 B
JavaScript
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',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|