Skip to content

Create Plugin: Support Node 24 #1772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 14, 2025
Merged
Prev Previous commit
Next Next commit
fix(create-plugin): fix webpack import error with node 24
  • Loading branch information
jackw committed May 14, 2025
commit 6a210a4a844ae3f4d07334a5235a7656e4080521
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import path from 'path';
import ReplaceInFileWebpackPlugin from 'replace-in-file-webpack-plugin';
import TerserPlugin from 'terser-webpack-plugin';
import { SubresourceIntegrityPlugin } from "webpack-subresource-integrity";
import { type Configuration, BannerPlugin } from 'webpack';
import webpack, { type Configuration } from 'webpack';
import LiveReloadPlugin from 'webpack-livereload-plugin';
import VirtualModulesPlugin from 'webpack-virtual-modules';

Expand Down Expand Up @@ -196,7 +196,7 @@ const config = async (env: Env): Promise<Configuration> => {
new BuildModeWebpackPlugin(),
virtualPublicPath,
// Insert create plugin version information into the bundle
new BannerPlugin({
new webpack.BannerPlugin({
banner: "/* [create-plugin] version: " + cpVersion + " */",
raw: true,
entryOnly: true,
Expand Down