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,
},
}); |
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
-
need to use the
.swcrc
file in the project to share the configurationBeta Was this translation helpful? Give feedback.
All reactions