【文件属性】:
文件名称:babel-plugin-ember-modules-api-polyfill:用于Ember JS API的Polyfill
文件大小:129KB
文件格式:ZIP
更新时间:2021-02-05 00:36:38
ember babel-plugin EmberJavaScript
babel-plugin-ember-modules-api-polyfill
此插件将导入语句转换回旧的“全局”余烬对象语法
例
import { inject } from "@ember/service"
回到传统
const inject = Ember . inject . service
安装
npm install --save babel-plugin-ember-modules-api-polyfill
为什么
该插件提供了一个API polyfill,以允许ember附加组件作者采用新的同时仍保持与不支持新模块API的旧版本Ember的向后兼容性。
Babel插件的
【文件预览】:
babel-plugin-ember-modules-api-polyfill-master
----.github()
--------workflows()
----yarn.lock(295KB)
----RELEASE.md(2KB)
----.eslintrc.js(412B)
----src()
--------index.js(11KB)
----LICENSE(1KB)
----__tests__()
--------index-test.js(14KB)
----README.md(2KB)
----.gitignore(13B)
----.prettierrc.js(58B)
----CHANGELOG.md(14KB)
----package.json(2KB)