20 lines
440 B
JavaScript
20 lines
440 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
mode: 'production',
|
|
entry: './src/baseContextProvider.js',
|
|
output: {
|
|
path: path.resolve('lib'),
|
|
filename: 'baseContextProvider.js',
|
|
libraryTarget: 'commonjs2'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.jsx?$/,
|
|
exclude: /(node_modules)/,
|
|
use: 'babel-loader'
|
|
}
|
|
]
|
|
}
|
|
} |