how does this plugin complements babel-node?
zhenyulin opened this issue · comments
Zhenyu Lin commented
I'm using this plugin mainly for writing webpack config with export default
.
if I do import webpackConfig from ''
, it seems babel-node
has helped handle the module, and I wouldn't need this plugin.
If I do require('./webpackConfig')
, it is treated as an UMD, presumably babel-node
doesn't transpile the export
, so I need to use this plugin to enable it.
Is the understanding correct?