meowtec / vite-plugin-import

Modular import plugin for vite
MIT License
14 stars 3 forks source link

重复plugin #8

Closed j-xzy closed 3 years ago

j-xzy commented 3 years ago

https://github.com/meowtec/vite-plugin-import/blob/e9860cfac50b4b52be4501f6b90eef140f576008/src/index.ts#L46

建议加一个idx babelImportPluginOptions.map((mod,idx) => ['import', mod, import-${idx}])

meowtec commented 3 years ago

这里应该是写错了,本来应该是以 import-${mod.libraryName} 为唯一 ID 的

j-xzy commented 3 years ago

修复发布下?

meowtec commented 3 years ago

已发布 v0.4.0