Closed lizheming closed 6 years ago
使用 ES Module 方式引入 Chimee 编译的 esm 包报错。 Browser throw error when we import Chimee esm build file with es module type.
Import normal.
Uncaught TypeError: Failed to resolve module specifier "babel-runtime/helpers/typeof". Relative references must start with either "/", "./", or "../".
demo page: https://imnerd.org/lab/chimee/
使用 index.esm.js 即可解决问题。详见https://github.com/Chimeejs/chimee/tree/master/demo/esm-import
那 index.mjs 是用来做什么的呢? for node ?
嗯嗯
但是 Chimee 并不支持 node 端吧?
主要用于 webpack/rollup 二次编译。
如果是这样的话是否有必要把它上传到仓库中来维护呢?
使用 ES Module 方式引入 Chimee 编译的 esm 包报错。 Browser throw error when we import Chimee esm build file with es module type.
Expected Behavior【期望行为】
Import normal.
Current Behavior【实际表现】
Steps to Reproduce【复现方法】
demo page: https://imnerd.org/lab/chimee/