Skip to content

Commit 3c4b79e

Browse files
authoredNov 28, 2024··
fix(rspack): plugin.__vfs is undefined (#439)
1 parent e35f889 commit 3c4b79e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/rspack/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export function getRspackPlugin<UserOptions = Record<string, never>>(
6969
const vfs = new FakeVirtualModulesPlugin(plugin)
7070
vfs.apply(compiler)
7171
plugin.__vfsModules = new Set()
72+
plugin.__vfs = vfs
7273

7374
compiler.hooks.compilation.tap(plugin.name, (compilation, { normalModuleFactory }) => {
7475
normalModuleFactory.hooks.resolve.tapPromise(plugin.name, async (resolveData) => {

0 commit comments

Comments
 (0)
Please sign in to comment.