Skip to content

Commit

Permalink
fix(bridge): set webpack as implicit external
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 5, 2021
1 parent 5f94ece commit 62a11d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: [
'src/module'
],
externals: [
'webpack'
]
})
2 changes: 1 addition & 1 deletion src/async-loading.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Based on https://github.com/webpack/webpack/blob/v4.46.0/lib/node/NodeMainTemplatePlugin.js#L81-L191

import { Compiler } from 'webpack'
import type { Compiler } from 'webpack'
import Template from 'webpack/lib/Template'

export class AsyncLoadingPlugin {
Expand Down

0 comments on commit 62a11d0

Please sign in to comment.