feature/IO-3499-React-19-ProductionBoard - Production Board React 19 Updates
This commit is contained in:
@@ -51,7 +51,9 @@ export default defineConfig(({ command, mode }) => {
|
||||
const enableReactCompiler =
|
||||
process.env.VITE_ENABLE_COMPILER_IN_DEV || (isBuild && (mode === "production" || isTestBuild));
|
||||
|
||||
console.log(enableReactCompiler ? "React Compiler enabled" : "React Compiler disabled");
|
||||
logger.info(
|
||||
enableReactCompiler ? chalk.green.bold("React Compiler enabled") : chalk.yellow.bold("React Compiler disabled")
|
||||
);
|
||||
|
||||
return {
|
||||
base: "/",
|
||||
@@ -121,17 +123,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
enableReactCompiler
|
||||
? {
|
||||
babel: {
|
||||
plugins: [
|
||||
[
|
||||
"babel-plugin-react-compiler",
|
||||
{
|
||||
// Exclude third-party drag-and-drop library from compilation
|
||||
sources: (filename) => {
|
||||
return !filename.includes("trello-board/dnd");
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
plugins: [["babel-plugin-react-compiler"]]
|
||||
}
|
||||
}
|
||||
: undefined
|
||||
@@ -221,7 +213,6 @@ export default defineConfig(({ command, mode }) => {
|
||||
|
||||
build: {
|
||||
sourcemap: true,
|
||||
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
|
||||
Reference in New Issue
Block a user