Breaking changes in Rsbuild v0.2.0 #813
Replies: 6 comments 6 replies
-
We will move the
const rsbuild = await createRsbuild({
target: ['web', 'node'],
});
// rsbuild.config.ts
export default {
output: {
targets: ['web', 'node'],
}
}
|
Beta Was this translation helpful? Give feedback.
-
Remove the deprecated
// rsbuild.config.ts
export default {
source: {
entries: {}
}
}
// rsbuild.config.ts
export default {
source: {
entry: {}
}
} |
Beta Was this translation helpful? Give feedback.
-
Motivation:
User can enable writeToDisk manually: export default {
dev: {
writeToDisk: true,
}
}; |
Beta Was this translation helpful? Give feedback.
-
pluginBabel({
plugins: [],
presets: [],
});
pluginBabel([
babelLoaderOptions: {
plugins: [],
presets: [],
}
]); This change allows us to add more options for |
Beta Was this translation helpful? Give feedback.
-
export default {
output: {
disableSourceMap: {
js: true,
css: true,
},
},
};
export default {
output: {
sourceMap: {
js: false,
css: false,
},
},
}; The default value of source map has also been updated to improve build performance.
|
Beta Was this translation helpful? Give feedback.
-
Rename
export default {
output: {
disableCssExtract: true,
},
};
export default {
output: {
injectStyles: true,
},
}; |
Beta Was this translation helpful? Give feedback.
-
This thread is used to collect planned breaking changes for Rsbuild v0.2.0.
Beta Was this translation helpful? Give feedback.
All reactions