Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Copyright (c) Han Lee.
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
var version = require('./package.json').version;
var loaders = [
{ test: /\.css$/, loader: "style-loader!css-loader" },
{ test: /\.json$/, loader: 'json-loader' },
{ test: /\.js$/, loader: 'babel-loader?presets[]=es2015' }
];
var buildExtension = require('@jupyterlab/extension-builder/lib/builder').buildExtension;
buildExtension({
name: 'ipytracer',
entry: './src/labplugin',
outputDir: '../ipytracer/staticlab',
useDefaultLoaders: false,
extractCSS: false,
config: {
module: {
loaders: loaders
}
}
});
module.exports = [
{// Notebook extension