babel-plugin-import icon indicating copy to clipboard operation
babel-plugin-import copied to clipboard

Modularly import plugin for babel.

Results 111 babel-plugin-import issues
Sort by recently updated
recently updated
newest added

babel config: ```json { "plugins": [ ["@babel/plugin-transform-typescript", { "legacy": true }], [ "babel-plugin-import", { "libraryName": "antd", "libraryDirectory": "lib", "style": true }, "c7n-pro" ], ["@babel/plugin-proposal-decorators", { "legacy": true }] ] }...

Found: [email protected] npm ERR! node_modules/react npm ERR! react@"18.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"16 || 17" from @react-native-community/[email protected] npm ERR!...

看了修改的原因是为了解决 antd 中 qrcode 的转换问题,按理说 QRCode 转换出来就应该是 q-r-code ,但是现在为了解决 antd 中 QRCode 独特的组件名称,修改成了转换为 qr-code,这导致了其他一些组件的引入产生了报错。

使用了thread-loader后,customName配置项失效,去掉thread-loader就能正常使用。 使用webpack构建,相关版本如下: webpack:4.42.1 thread-loader:3.0.4 babel-plugin-import:1.13.3 配置大致如下: ` { loader: 'thread-loader' }, { loader: 'babel-loader', query: { //... }, plugins: [[ 'import', { library: 'xxx', style: true, customName: function() { //......

ImportDeclaration(path, state){} 监听 可以会比 CallExpression(path, state) {} 监听 后执行。 例如: ``` import { Component } from "react"; import { Table, Select, Message } from "@alifd/next"; console.log(Table, Select, Message) ``` 有一个插件...

- input ``` import * as e from 'react'; import t, { useState as n, useEffect as i, forwardRef as r, useRef as l, useImperativeHandle as o } from 'react';...

B = (a("./node_modules/antd/es/index.js"), es目录下的代码应该是用来做按需加载的,可是我不知道为啥我的很多模块里出现了这行引入代码,导致程序初始就依赖了较大的antd/es/index.js,按需加载没用好。 可能和我升级到了babel7有关系吗? 麻烦帮忙看看了,谢谢。

plugins: [ ['import', { libraryName: 'vant', libraryDirectory: 'es', style: true }, 'vant'] ] 其中 'vant', 这个参数 是作用是什么? 如果不写,默认值?是什么呢? ---- 遇到的问题,如果有两个 都不写 第三个参数,就无法通过编译 ----

### 错误信息 Input is not defined ### 对应代码: ``` import {Input, InputNumber } from 'antd'; const FinalInput = ComponentType === 'number' ? InputNumber: Input; ``` ### istanbul插桩结果 ``` var FinalInput...