babel-preset: transforms don't work with native ESM packages that use .mjs
#513
Labels
🥲 wontfix
This will not be worked on
.mjs
#513
if package A imports from package B, where B ships native ESM via exports map (
exports#import
) , where those files have.mjs
extension and all relative imports use.mjs
, babel processing fails.Stack trace
it explodes on https://github.com/microsoft/griffel/blob/main/packages/babel-preset/src/utils/evaluatePathsInVM.ts#L106
while invoking babel
valueToNode
function , loggingvalue
arg throws following:original error
Repro
tokens
package native ESM (build transforms) fluentui#30620yarn lage build --to react-divider
yarn workspace @fluentui/react-divider babel ./lib/components/Divider/useDividerStyles.styles.js
for raw babel error stack traceThe text was updated successfully, but these errors were encountered: