https://github.com/qinzhen001/babel-plugin-import
:whale: 仿造 babel-plugin-import
https://github.com/qinzhen001/babel-plugin-import
babel babel-plugin
Last synced: about 2 months ago
JSON representation
:whale: 仿造 babel-plugin-import
- Host: GitHub
- URL: https://github.com/qinzhen001/babel-plugin-import
- Owner: QinZhen001
- Created: 2020-06-23T07:20:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T08:52:19.000Z (about 3 years ago)
- Last Synced: 2023-05-06T09:29:58.105Z (about 3 years ago)
- Topics: babel, babel-plugin
- Language: JavaScript
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-plugin-import
仿造 babel-plugin-import
## 补充
```js
import { Button } from 'antd';
import View from 'antd';
import * as Swiper from 'antd';
```
* Button 为 ImportSpecifier
* View 为 ImportDefaultSpecifier
* `*` as Swiper 为 ImportNamespaceSpecifier
----
```js
import('./dialogBox.js')
```
* 这是CallExpression
* 其中里面的callee 为 Import