Comments (3)
Hello @ctwhome, you need to define plugin once, e.g:
{
"plugins": [
[
"direct-import",
["material-ui", "react-virtualized", "react-router", "react-router-dom"]
]
]
}
from babel-plugin-direct-import.
hi @umidbekkarimov thanks for the tip, I backed up to a previous commit and it is working again. Although it seems to not be a problem to define the plugin more than one... strange. Thanks for the fast response.
from babel-plugin-direct-import.
@ctwhome can you please provide full content of your .babelrc
file?
Here is mine working copy:
{
"presets": [
"react",
[
"env",
{
"modules": false,
"targets": {
"uglify": true
}
}
]
],
"plugins": [
"lodash",
"date-fns",
"transform-react-remove-prop-types",
"syntax-dynamic-import",
"transform-class-properties",
"transform-object-rest-spread",
[
"transform-runtime",
{
"helpers": true,
"polyfill": false,
"regenerator": false
}
],
[
"direct-import",
[
"redux-form",
"react-router",
"react-virtualized",
"react-google-map-components",
"material-ui",
{
"name": "material-ui/svg-icons",
"indexFile": "material-ui/svg-icons/index.es"
}
]
]
]
}
from babel-plugin-direct-import.
Related Issues (19)
- ... provided an invalid property of "indexFile" HOT 1
- error with babel 7 and material-ui@next HOT 4
- After adding babel-plugin-import, prettier cannot parse "type modifiers on import(TS4.5 feature)" HOT 3
- Dive into material-ui sub-modules HOT 1
- Allow missing dependencies HOT 4
- "Cannot use import statement outside a module" error HOT 2
- Deprecation notice HOT 1
- What about lodash and others? HOT 1
- Confused by new examples in ReadMe HOT 4
- Doesn't work with FontAwesome HOT 1
- Read default indexFile from package.json
- Error if the cwd is not the root of the package that is transpiled with babel HOT 3
- Dependency Dashboard
- Babel 7 support HOT 2
- Action Required: Fix Renovate Configuration
- Not working for material-ui@next HOT 5
- Tips for getting this to work with `@babel/preset-typescript`? HOT 1
- Error when importing flow types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-direct-import.