mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-24 14:20:54 +08:00
28 lines
538 B
JavaScript
28 lines
538 B
JavaScript
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'],
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|