From 16f5cb4d063eb9ddfc061fe895462655e05f8c25 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Fri, 2 Jun 2023 09:31:21 +0200 Subject: [PATCH] Add `JSONLicenseWebpackPlugin` (#6896) --- app/webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/webpack.config.js b/app/webpack.config.js index fe1f62d83a..4fdd9e5106 100644 --- a/app/webpack.config.js +++ b/app/webpack.config.js @@ -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',