Is it possible to do multiple class imports with ES6/Babel?

You can export like this: import App from ‘./App’; import Home from ‘./Home’; import PageWrapper from ‘./PageWrapper’; export { App, Home, PageWrapper } Then, you can import like this wherever you need it: import { App, PageWrapper } from ‘./index’ //or similar filename … You can read more about import and export here. I also …

Read more

How do you configure babel to run with different configurations in different environments

Set up different environments in your .babelrc { “env”: { “dev”: { “presets”: [“es2015”], “plugins”:[“x”] }, “test”: { “presets”: [“es2015”] } } } And then run babel after you have set your BABEL_ENV BABEL_ENV=test <commandhere> or BABEL_ENV=dev <commandhere> If you don’t set BABEL_ENV, babel will use the NODE_ENV value. If you don’t set either BABEL_ENV …

Read more