Skip to content

Commit

Permalink
Add JSONLicenseWebpackPlugin (#6896)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Jun 2, 2023
1 parent a605fa9 commit 16f5cb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/webpack.config.js
Expand Up @@ -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');
Expand Down Expand Up @@ -219,6 +220,10 @@ module.exports = [
fallback: { util: false },
},
plugins: [
new WPPlugin.JSONLicenseWebpackPlugin({
excludedPackageTest: (packageName) =>
packageName === '@jupyter-notebook/app',
}),
new ModuleFederationPlugin({
library: {
type: 'var',
Expand Down

0 comments on commit 16f5cb4

Please sign in to comment.