Replies: 1 comment
-
Rsbuild provide a import { createRsbuild } from '@rsbuild/core';
const rsbuild = await createRsbuild({ rsbuildConfig });
const fs = createFsFromVolume(new Volume());
rsbuild.onAfterCreateCompiler(({ compiler }) => {
compiler.outputFileSystem = fs;
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What I have:
RsbuildConfig
and the desire to get the build result in a variable, without writing files to disk.rspack
has the ability to specify a custom file system for the output withoutputFileSystem
option: https://www.rspack.dev/api/javascript-api#custom-file-systems.I tried something like this, but when I add the
compiler
arg I get a build errorRspack build failed!
(Resolve error: Can't resolve './src' in ...
).Beta Was this translation helpful? Give feedback.
All reactions