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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What I have:
RsbuildConfigand the desire to get the build result in a variable, without writing files to disk.rspackhas the ability to specify a custom file system for the output withoutputFileSystemoption: https://www.rspack.dev/api/javascript-api#custom-file-systems.I tried something like this, but when I add the
compilerarg I get a build errorRspack build failed!(Resolve error: Can't resolve './src' in ...).Beta Was this translation helpful? Give feedback.
All reactions