Add `JSONLicenseWebpackPlugin` (#6896)

pull/6899/head
Jeremy Tuloup 3 years ago committed by GitHub
parent a605fa9bdb
commit 16f5cb4d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,6 +14,7 @@ const BundleAnalyzerPlugin =
require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const Build = require('@jupyterlab/builder').Build;
const WPPlugin = require('@jupyterlab/builder').WPPlugin;
const baseConfig = require('@jupyterlab/builder/lib/webpack.config.base');
const data = require('./package.json');
@ -219,6 +220,10 @@ module.exports = [
fallback: { util: false },
},
plugins: [
new WPPlugin.JSONLicenseWebpackPlugin({
excludedPackageTest: (packageName) =>
packageName === '@jupyter-notebook/app',
}),
new ModuleFederationPlugin({
library: {
type: 'var',

Loading…
Cancel
Save