Skip to content

Commit

Permalink
fix: apply imports transform (#10401)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <[email protected]>
  • Loading branch information
mattkrick authored Oct 23, 2024
1 parent 7f60737 commit 87f9a7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/webpack/utils/transformRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const transformRules = (projectRoot, isProd) => {
loader: '@sucrase/webpack-loader',
options: {
production: isProd,
transforms: ['jsx', 'typescript']
// imports is needed for applyEnvVarsToClientAssets since it uses CJS
// otherwise it gets ignored and treated as an unused export in the build
transforms: ['jsx', 'typescript', 'imports']
}
}
},
Expand Down

0 comments on commit 87f9a7c

Please sign in to comment.