Skip to content

Commit 62a11d0

Browse files
committed
fix(bridge): set webpack as implicit external
1 parent 5f94ece commit 62a11d0

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

build.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ import { defineBuildConfig } from 'unbuild'
33
export default defineBuildConfig({
44
entries: [
55
'src/module'
6+
],
7+
externals: [
8+
'webpack'
69
]
710
})

src/async-loading.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Based on https://github.com/webpack/webpack/blob/v4.46.0/lib/node/NodeMainTemplatePlugin.js#L81-L191
22

3-
import { Compiler } from 'webpack'
3+
import type { Compiler } from 'webpack'
44
import Template from 'webpack/lib/Template'
55

66
export class AsyncLoadingPlugin {

0 commit comments

Comments
 (0)