We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a9307c commit 69aafb1Copy full SHA for 69aafb1
1 file changed
packages/build-tools/bundling/function/createRsbuildConfig.js
@@ -7,14 +7,16 @@ export const createRsbuildConfig = async ({ cwd }) => {
7
const { default: rspack } = await import("@rspack/core");
8
const paths = getPaths(cwd);
9
const mode = getMode();
10
+ const isDebugEnabled = process.env.DEBUG === "true";
11
12
return /** @type {import("@rsbuild/core").RsbuildConfig} */ ({
13
source: { entry: { index: paths.fn.entryFile } },
14
output: {
15
module: true,
16
target: "node",
17
+ minify: true,
18
sourceMap: {
- js: process.env.DEBUG === "true" ? "source-map" : false
19
+ js: isDebugEnabled ? "source-map" : false
20
},
21
filename: {
22
js: pathData => {
0 commit comments