@0x706b/ts-transform-esm-specifier 中文文档教程
ts-transform-esm-module-specifier
NOTE: This transformer is entirely experimental. Use it at your own risk.
I highly recommend making a backup of any work before testing this. It shouldn't destroy anything, but I can't promise that. So don't hold me liable if your project get mangled or your computer explodes :)
将 typescript 导入语句转换为 node.js ES 模块系统当前接受的格式。
例如:
import { thing } from "folder/file"
成为
import { thing } from "folder/file.js"
和
import { thing } from "folder/anotherFolder"
成为
import { thing } from "folder/anotherFolder/index.js"
ts-transform-esm-module-specifier
NOTE: This transformer is entirely experimental. Use it at your own risk.
I highly recommend making a backup of any work before testing this. It shouldn't destroy anything, but I can't promise that. So don't hold me liable if your project get mangled or your computer explodes :)
Transforms typescript import statements into a format currently accepted by node.js ES Module system.
For example:
import { thing } from "folder/file"
becomes
import { thing } from "folder/file.js"
and
import { thing } from "folder/anotherFolder"
becomes
import { thing } from "folder/anotherFolder/index.js"
更多
你可能也喜欢
- @0xkilo/sdk 中文文档教程
- @1024-fontend-group/el-form-renderer 中文文档教程
- @11ty/eleventy-plugin-inclusive-language 中文文档教程
- @21epub/float-panel 中文文档教程
- @2sic.com/dnn-sxc-angular 中文文档教程
- @4pd/shared 中文文档教程
- @aaronpowell/create-swa-app 中文文档教程
- @aashutoshrathi/nestjs-redis 中文文档教程
- @abdulkaderptp/tailwind-rtl 中文文档教程
- @abi-software/mapcore-osparc-remote-interface 中文文档教程