Closed Paosder closed 4 years ago
Can you add some log in this file: https://github.com/zhoukekestar/snowpack-plugin-import-map/blob/master/babel-plugin.js, and checkout what's going on ? I have no idea on this issue... OR maybe just mismatch the wrong snowpack version?
@zhoukekestar Okay, I found it crashes with latest snowpack(^2.10) because of some changes in plugin system. I resolved this issue via modifying some code of index.js
. If you don't mind, I will make PR to address this issue. However, resolving this issue brings some changes in configuration, therefore previous developers must modify their config. I will write more details in PR.
Thanks for your PR~
By the way, I'm try using jspm.dev
to be my esm loader.
Cool! Oh, we need to modify readme so that other people could know its change, then finally publish it to npm.
Done
I added this plugin with same manner of Readme, but error occurs.
Here's my snowpack.config.js-
It seems it loads twice so I removed in plugins key, then another error occurs. Might be snowpack issue?