Skip to content

Commit 7bbc14c

Browse files
committed
fix(create-plugin): fix webpack import error with node 24
1 parent 9628a29 commit 7bbc14c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/create-plugin/templates/common/.config/webpack/webpack.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import path from 'path';
1212
import ReplaceInFileWebpackPlugin from 'replace-in-file-webpack-plugin';
1313
import TerserPlugin from 'terser-webpack-plugin';
1414
import { SubresourceIntegrityPlugin } from "webpack-subresource-integrity";
15-
import { type Configuration, BannerPlugin } from 'webpack';
15+
import webpack, { type Configuration } from 'webpack';
1616
import LiveReloadPlugin from 'webpack-livereload-plugin';
1717
import VirtualModulesPlugin from 'webpack-virtual-modules';
1818

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

0 commit comments

Comments
 (0)