From 3dd11071fd1c773d1e61aabcf33d3ff0daf942db Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 15 Jul 2024 11:33:37 +0900 Subject: [PATCH] fix: explicitly import webpack as type --- src/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index 6c6b251..199fd1e 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -3,8 +3,8 @@ import { RawSource as WP4RawSource, SourceMapSource as WP4SourceMapSource, } from 'webpack-sources'; -import webpack4 from 'webpack'; -import webpack5 from 'webpack5'; +import type webpack4 from 'webpack'; +import type webpack5 from 'webpack5'; import ModuleFilenameHelpers from 'webpack/lib/ModuleFilenameHelpers.js'; import { version } from '../package.json'; import type { EsbuildPluginOptions } from './types.js';