Skip to content

Commit

Permalink
fix: [DX-3140] Fix react is not defined widgets sample app error (#2100)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidarain1 authored Aug 20, 2024
1 parent b4fe508 commit 484cc5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/checkout/widgets-lib/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ const defaultPlugins = [
preventAssignment: true,
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || PRODUCTION),
}),
isProduction ? typescript({customConditions: ["default"]}) : swc.rollup(),
isProduction ? typescript({customConditions: ["default"]}) : swc.rollup({ jsc: {
transform: { react: { development: true, runtime: 'automatic' }},
} }),
]

const productionPlugins = [
Expand Down

0 comments on commit 484cc5c

Please sign in to comment.