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

Modular element-ui build plugin for babel.

Results 44 babel-plugin-component issues
Sort by recently updated
recently updated
newest added

.babelrc ```JSON { "presets": [ ["es2015", { "modules": false }] ], "plugins": [["component", [ { "libraryName": "mint-ui", "style": true } ]]] } ``` main.js ```JS import Vue from 'vue'; import...

[ant-design/Fix multiple imports](https://github.com/ant-design/babel-plugin-import/pull/212) https://github.com/ElementUI/babel-plugin-component/issues/59 https://github.com/ElementUI/babel-plugin-component/issues/56

按照这样子配置 { "plugins": [xxx, ["component", { libraryName: "antd", style: true, }, "antd"], ["component", { libraryName: "test-module", style: true, }, "test-module"] ] } 跑起来就报错了, 修改成{ "plugins": [xxx, ["component", { libraryName: "antd",...

**.babelrc** ``` { "presets": [ [ "env", { "targets": { "browsers": [ "> 1%", "last 2 versions", "not ie

模块`lib/socket-connection.js`: ``` js module.exports = function SocketConnection () {} ``` 引入: ``` js import { SocketConnection } from 'xxx' console.log(typeof SocketConnection) // undefined console.log(SocketConnection) // function SocketConnection () {} SocketConnection()...

```js [ ["component", {"libraryName": "library1", "styleLibraryName": "styles"}], ["component", {"libraryName": "library2", "styleLibraryName": "styles"}] ] ``` ```js import { component } from "library2" // 会报 library1/lib/component 找不到 ```

babel 7 现在不支持这种写法了 会报错: `.libraryName is not a valid Plugin property`

Set babel dependencies to ^7.0.0. (Fixes #48) Produces a couple of issues that need project maintainer feedback. Going through the new output files, this one looks suspicious to me (unexpected...