Open ayroblu opened 8 months ago
I figured out the basic issue, which is that the babel parser preserves comments, but the hermes parser doesn't
import( /* webpackChunkName: 'chunk.name' */ "./file");
import("./file")
Hello,
just hit the exact same issue :)
Bug Description
In our babel config, we define:
We also have this in our webpack build:
If I add a log on the names generated, BEFORE:
shared~chunkname~otherchunkname
AFTER:shared~~
.The only change I'm making to our codebase is to add the plugin to the babel.config.js
The parser should not drop chunk names