We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f94ece commit 62a11d0Copy full SHA for 62a11d0
2 files changed
build.config.ts
@@ -3,5 +3,8 @@ import { defineBuildConfig } from 'unbuild'
3
export default defineBuildConfig({
4
entries: [
5
'src/module'
6
+ ],
7
+ externals: [
8
+ 'webpack'
9
]
10
})
src/async-loading.ts
@@ -1,6 +1,6 @@
1
// Based on https://github.com/webpack/webpack/blob/v4.46.0/lib/node/NodeMainTemplatePlugin.js#L81-L191
2
-import { Compiler } from 'webpack'
+import type { Compiler } from 'webpack'
import Template from 'webpack/lib/Template'
export class AsyncLoadingPlugin {
0 commit comments