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

Modularly import plugin for babel.

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

这是源码 ``` import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' import { LocaleProvider } from 'antd' ``` 使用babel编译后 ``` import 'antd/lib/locale-provider/style'; import _LocaleProvider from 'antd/lib/locale-provider'; import 'babel-polyfill'; import...

Bumps [np](https://github.com/sindresorhus/np) from 6.5.0 to 7.4.0. Release notes Sourced from np's releases. v7.4.0 Add support for custom commit message (#597) 65a674e Fix --release-draft-only flag (#594) add5bd9 https://github.com/sindresorhus/np/compare/v7.3.0...v7.4.0 v7.3.0 Support .cjs...

dependencies

目前在项目中使用babel-plugin-import后,如果引用整个UI库会报错,只能通过按需引入的方式加载,是否可以兼容两者?

![QQ20200628-085855](https://user-images.githubusercontent.com/20625882/85934997-c8aa1000-b91d-11ea-9769-0799241cc779.png) [ "import", { "libraryName": "@ant-design", "libraryDirectory": "es", "style": "css", "camel2DashComponentName": false } ], [ "import", { "libraryName": "lodash", "libraryDirectory": "", "camel2DashComponentName": false } ]

I have a project A using **antd** library (like a wrapper for every components of **antd**). So in order for A to work, I use **babel-plugin-import** to import the style....

Cannot find module '/Users/chencheng/Code/github.com/ant-design/babel-plugin-import/node_modules/babel-preset-umi/node_modules/@babel/runtime/helpers/interopRequireDefault

On [README](https://github.com/ant-design/babel-plugin-import#-libraryname-antd-style-true-) it states that: > Note : with style: true css source files are imported and optimizations can be done during compilation time. With style: "css", pre bundled css...

hi. i am using `lerna` monorepo setup for my project. where we can have multiple react projects in the same repo. which enables us to achieve maximum code re-use and...

```js // package/index.js export default A ``` ```js // 业务代码中 import A from 'package' ``` `结果:报A is not defined错误`

This is the webpack.config.js inside my .storybook folder inside CRA project- ```js const path = require("path"); module.exports = { module: { rules: [ { loader: 'babel-loader', exclude: /node_modules/, test: /\.js$/,...