Replies: 1 comment 4 replies
-
No, files - i.e. assets, emit assets, babel-loader returns code - i.e. string
No, it is not related to babel plugins at all |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are some caveats listed in README.md of thread-loader. Specifically, my concern around it is the first rule and the third rule:
Confusion on Rule 1
Isn't that
babel-loader
also emitting files for webpack eventually? In the example given in the readme, it mentioned that it is expected to work withbabel-loader
. I need some clarifications here as I have some misunderstandings.Confusion on Rule 3
In my case, I'm using babel-loader with some custom options like
rootMode: 'upward'
, and in my babel.config.js I also included some third-party plugins likereact-refresh/babel
for HMR with the corresponding plugin in my webpack.config.js. Does this rule mean thatbabel-loader
could not access these plugins?Beta Was this translation helpful? Give feedback.
All reactions