You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
538 B
28 lines
538 B
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: ['babel-polyfill', '@jupyterlab/apputils/lib/sanitizer'],
|
|
output: {
|
|
filename: 'index.js',
|
|
path: path.resolve(__dirname, 'notebook/static/components/sanitizer'),
|
|
libraryTarget: "amd",
|
|
},
|
|
devtool: false,
|
|
optimization: {
|
|
minimize: false
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.m?jsx?$/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
presets: ['@babel/preset-env'],
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|