This is a demo project showing how to leverage the changes in
[email protected] that allows an application (or addon) to use a
babel.config.js
instead of relying on "magical" configuration by
ember-cli-babel
itself.
The main changes are:
- Update to
[email protected]
- Add
babel.config.js
file (with very basic config) - Install
@babel/preset-env
- Install
@babel/eslint-parser
- Update
ember-cli-build.js
- Opt in to
useBabelConfig: true
API - Temporarily work around ef4/ember-auto-import#342 by adding
qunit
toskipBabel
configuration inember-cli-build.js
- Opt in to
- Update
.eslintrc.js
- Add
babel.config.js
to list of "node" files - Change parser to
@babel/eslint-parser
- Add
See complete diff here.