diff --git a/packages/license-webpack-plugin@4/package.json b/packages/license-webpack-plugin@4/package.json new file mode 100644 index 0000000..505b88b --- /dev/null +++ b/packages/license-webpack-plugin@4/package.json @@ -0,0 +1,13 @@ +{ + "name": "@rspack-compat/license-webpack-plugin_4", + "scripts": { + "build": "rspack build" + }, + "devDependencies": { + "@rspack/cli": "0.3.11", + "license-webpack-plugin": "^4.0.2" + }, + "rspack": { + "version": ">=0.3.11" + } +} diff --git a/packages/license-webpack-plugin@4/rspack.config.js b/packages/license-webpack-plugin@4/rspack.config.js new file mode 100644 index 0000000..fcad264 --- /dev/null +++ b/packages/license-webpack-plugin@4/rspack.config.js @@ -0,0 +1,15 @@ +const { defineConfig } = require('@rspack/cli') +const { LicenseWebpackPlugin } = require("license-webpack-plugin"); + +module.exports = defineConfig({ + plugins: [ + new LicenseWebpackPlugin({ + stats: { + warnings: false, + errors: false + }, + perChunkOutput: true, + outputFilename: `3rdpartylicenses.txt` + }), + ] +}); diff --git a/packages/license-webpack-plugin@4/src/index.js b/packages/license-webpack-plugin@4/src/index.js new file mode 100644 index 0000000..bb74030 --- /dev/null +++ b/packages/license-webpack-plugin@4/src/index.js @@ -0,0 +1,3 @@ +function main() { + return 'hello world' +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3030010..a34fe01 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,6 +56,15 @@ importers: specifier: ^5.5.3 version: 5.5.3(webpack@5.89.0) + packages/license-webpack-plugin@4: + devDependencies: + '@rspack/cli': + specifier: 0.3.11 + version: 0.3.11(react-refresh@0.14.0) + license-webpack-plugin: + specifier: ^4.0.2 + version: 4.0.2(webpack@5.76.0) + packages/webpack-bundle-analyzer@4: devDependencies: '@rspack/cli': @@ -2584,6 +2593,20 @@ packages: shell-quote: 1.8.1 dev: true + /license-webpack-plugin@4.0.2(webpack@5.76.0): + resolution: {integrity: sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw==} + peerDependencies: + webpack: '*' + peerDependenciesMeta: + webpack: + optional: true + webpack-sources: + optional: true + dependencies: + webpack: 5.76.0 + webpack-sources: 3.2.3 + dev: true + /lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: true