prateekbh / babel-esm-plugin

Add this plugin to generate mirrored esm modules for your existing bundles
MIT License
192 stars 16 forks source link

Fix resolved paths (and windows \ paths) #9

Closed ForsakenHarmony closed 5 years ago

prateekbh commented 5 years ago

Can you provide a sample config which these changes are targeting?

prateekbh commented 5 years ago

@forsakenharmony there is no build step to this project yet, do you think your changes will be supported for the preact-cli supported node versions?

ForsakenHarmony commented 5 years ago

Destructuring is node 6+, includes is node 4+

preact-cli is node 8+ because of async await

prateekbh commented 5 years ago

Will publish ASAP

ForsakenHarmony commented 5 years ago

For the sample config, it's basically just require.resolve instead of just the string in .babelrc or whatever else

prateekbh commented 5 years ago

added a test for this change