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

I searched everywhere but I can't find an answer that works for me. Here is our webpack config: ``` //process.env.NODE_ENV = 'production' var webpack = require('webpack'); var path = require('path');...

reproduction repo [https://github.com/cainiaokan/webpack_issue_repo_01](https://github.com/cainiaokan/webpack_issue_repo_01) reproduction steps: 1. import { message } from "antd"; 2. declare a variable within a function scope using the same name `message` 3. visit one of its...

ReferenceError When Use `Lodash` Placeholder. `Lodash` support use `_` as Placeholder in `_.curry` and other funcs. This is a test case: ```js function abc(x, y, z) { return [x, y,...

## 下面是我[hiynn-design](https://www.npmjs.com/package/hiynn-design) 包的源文件: ``` const path = require("path"); const webpack = require("webpack"); const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const OptimizeCssAssetsPlugin = require("optimize-css-assets-webpack-plugin"); const nodeExternals = require("webpack-node-externals"); const WebpackMd5Hash...

构建的lib中,有些文件会export多个function,这时就没有export default,但是另一些文件只export了一个function,这时就会有export default,现在的transformToDefaultImport只能全局设置,能否根据methodName自定义动态设置

I set my babel plugins to be this: ```js [ "babel-plugin-import", { "libraryName": "@material-ui/core", "libraryDirectory": "", "camel2DashComponentName": false }, "tree-shaking-mui-core" ], [ "babel-plugin-import", { "libraryName": "@material-ui/core/styles", "libraryDirectory": "", "camel2DashComponentName": false...

I would to get your opinion on how to also use this library for reducing @antv/g2's footprint on bundles: ![image](https://user-images.githubusercontent.com/3440556/69248515-6cf2f980-0b7a-11ea-9cd2-5d1a46725023.png)

The sentence in the README.md file is not giving clear instructions. > babel-plugin-import will not work properly if you add the library to the webpack config vendor. - So how...

直接修改node_modules/react-scripts/webpack.config.js测试: ``` test: /\.(js|mjs|jsx|ts|tsx)$/, include: paths.appSrc, loader: require.resolve('babel-loader'), ... plugins: [ ['import', { 'libraryName':'antd','style':'css' }], ['@babel/plugin-proposal-decorators', { 'legacy': true }], ... ``` 网上搜了一圈,还有不少是针对ts-loader的配置教程,但是cra2现在都不用ts-loader了?直接用babel-loader通吃js/ts? 那使用antd的话如何做到按需加载呢……

按需加载ant-design-vue发现根本不好使,css无法加载,js文件也超级大,1M多,去掉这个插件一样大,说明根本没有任何作用。 搜了下网上有一亿多个问的,都解决不了,最终发现就是babel-plugin-import跟新版babel不兼容。 希望作者能更新一下。