mirror of
https://github.com/unjs/unplugin.git
synced 2026-01-18 16:03:09 +00:00
fix(rspack): plugin.__vfs is undefined (#439)
This commit is contained in:
parent
e35f8899d1
commit
3c4b79e6f9
@ -69,6 +69,7 @@ export function getRspackPlugin<UserOptions = Record<string, never>>(
|
||||
const vfs = new FakeVirtualModulesPlugin(plugin)
|
||||
vfs.apply(compiler)
|
||||
plugin.__vfsModules = new Set()
|
||||
plugin.__vfs = vfs
|
||||
|
||||
compiler.hooks.compilation.tap(plugin.name, (compilation, { normalModuleFactory }) => {
|
||||
normalModuleFactory.hooks.resolve.tapPromise(plugin.name, async (resolveData) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user