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

与 babel 7 配合无效

Open hasayake97 opened this issue 3 years ago • 7 comments

这是我的 .babelrc 配置 入口加载的是 dist/antd.less 使用方式为 组件按需加载

["import",
  {
      "libraryName": "antd",
      "style": true   // or 'css'
   }
]

babel v7.x webpack v4.x

hasayake97 avatar Aug 31 '20 03:08 hasayake97

一样的问题

codeGun123 avatar Oct 30 '20 09:10 codeGun123

+1 This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'. at File.addImport

wangmeijian avatar Dec 21 '20 06:12 wangmeijian

+1 This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'. at File.addImport

if i use create-react-app my-app create a project with antd-mobile, how to use babel-plugin-import to make it work ?

ok2fly avatar Dec 28 '20 14:12 ok2fly

+1 This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'. at File.addImport

该如何在webpack中使用?

TomatoDroid avatar Jan 14 '21 09:01 TomatoDroid

+1 This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'. at File.addImport

王美健,why do you speak English?

cyt68 avatar Feb 02 '21 02:02 cyt68

+1 This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'. at File.addImport

王美健,why do you speak English?

何方妖孽?东哥?

wangmeijian avatar Mar 04 '21 14:03 wangmeijian

+1 This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'. at File.addImport

王美健,why do you speak English?

何方妖孽?东哥?

我不做大哥好多年

dAskyacc avatar May 18 '21 09:05 dAskyacc