Replies: 1 comment
|
Try this: import { defineConfig } from '@rsbuild/core';
import json5 from 'json5';
import fs from 'node:fs';
import path from 'node:path';
const swcrc = json5.parse(
fs.readFileSync(path.resolve(__dirname, '.swcrc'), 'utf-8'),
);
export default defineConfig({
tools: {
swc: swcrc,
},
}); |
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.
need to use the
.swcrcfile in the project to share the configurationAll reactions