文件名称:babel-plugin-transform-dynamic-imports-to-static-imports:将动态导入转换为静态导入的转换
文件大小:56KB
文件格式:ZIP
更新时间:2024-04-10 01:14:19
JavaScript
babel插件将动态导入转换为静态导入 将动态导入转换为静态导入的转换 安装: npm install babel-plugin-transform-dynamic-imports-to-static-imports 用法: 带有配置文件: { " plugins " : [ " babel-plugin-transform-dynamic-imports-to-static-imports " ] } 通过CLI babel --plugins babel-plugin-transform-dynamic-imports-to-static-imports script.js 通过节点API require ( "@babel/core" ) . transform ( "code" , { plugins : [ "babel-plugin-transform-dyna
【文件预览】:
babel-plugin-transform-dynamic-imports-to-static-imports-main
----index.js(2KB)
----renovate.json(58B)
----test.js(5KB)
----package.json(1KB)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----LICENSE(1KB)
----package-lock.json(187KB)
----CONTRIBUTING.md(1KB)
----.gitignore(12B)
----README.md(2KB)