fix(bridge): set webpack as implicit external

This commit is contained in:
Pooya Parsa 2021-09-06 00:00:07 +02:00
parent 9f7438afb1
commit 0b3271d275
2 changed files with 4 additions and 1 deletions

View File

@ -3,5 +3,8 @@ import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: [
'src/module'
],
externals: [
'webpack'
]
})

View File

@ -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 {