You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to embed babel using source version (github.com/babel) instead of packaged version (npm @babel/*) in order to benefits of a better (webpack) tree-shaking (@babel/* is cjs whereas github.com/babel is mjs/ts) and to reduce final bundle size.
I need to make TypeScript to resolve any node_modules/@babel/* to node_modules/babel/packages/babel-*/src
I tried with compilerOptions.paths with no success :
I would like to embed babel using source version (
github.com/babel
) instead of packaged version (npm@babel/*
) in order to benefits of a better (webpack) tree-shaking (@babel/*
is cjs whereasgithub.com/babel
is mjs/ts) and to reduce final bundle size.I need to make TypeScript to resolve any
node_modules/@babel/*
tonode_modules/babel/packages/babel-*/src
I tried with
compilerOptions.paths
with no success :Is there a trick to make any require to
@babel/*
to point tobabel/packages/babel-*/src
?BTW, In the webpack configuration file, I use:
and I'm looking for the equivalent for typescript.
The text was updated successfully, but these errors were encountered: