【发布时间】:2021-11-27 10:02:50
【问题描述】:
我正在尝试在 svelte 中使用制表符。但似乎制表符没有将包类型公开为 package.json 文件中的模块。因此,我们不能将 tabulator_esm 作为模块导入。
当我尝试将其作为模块导入时,我收到来自vite 的错误,例如Unexpected token export。虽然还有其他导入方式,例如await import('tabulator-tables');。
这个选项(`"type": "module")不应该在 package.json 中吗?
【问题讨论】:
-
https://codesandbox.io/s/condescending-silence-5emqr?file=/index.js
标签: tabulator