@linaria/shaker: export *
is removed
#808
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
needs: complete repro 🖥️
Issue need to have complete repro provided
needs: triage 🏷
Issue needs to be checked and prioritized
Environment
@linaria/babel-preset@3.0.0-beta.7
,@linaria/shaker@3.0.0-beta.8
Description
Originally started there, #800 (comment).
Failing fixture contains named exports (
foo
,bar
) and a re-export inindex.js
, there is an issue with resolving them (checkusing-shaker.js
). For comparison I added evaluation with@babel/register
(checkusing-babel.js
).I followed debugging guide and dumped output.
log.txt
According to the output:
shaker
is evaluated forsrc/failing/index.js
and exportfoo
, fails to findfoo
and removes everything...Reproducible Demo
https://stackblitz.com/edit/node-chgmv6
you can either download project or execute code built-in terminal
$ node using-babel.js
$ node using-shaker.js
The text was updated successfully, but these errors were encountered: