Skip to content

Commit

Permalink
incorporate dev mode into default macros config if NODE_ENV is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Sep 11, 2024
1 parent 13c2f3c commit 9421052
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/compat/src/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ function loadCompatConfig(): CompatBabelState {
let macros = MacrosConfig.for({}, process.cwd());
let { plugins: templateMacros, setConfig } = MacrosConfig.transforms();
setConfig(macros);
if (process.env.NODE_ENV === 'development') {
macros.enablePackageDevelopment(process.cwd());
macros.enableRuntimeMode();
}
macros.finalize();
return {
plugins: [],
Expand Down

0 comments on commit 9421052

Please sign in to comment.