@guidecx/config-babel
v0.0.1-alpha.0
Published
Configuration files for babel used in GuideCX applications
Downloads
1
Readme
GCX Babel Config
This module contains the configuration files for Babel that are used by all GuideCX applications.
NOTE: This package is dependent on a project having typescript
installed (and by extension the
tsc
command).
Installing library into another project
The index.js
file exports our babel configuration. In the project you are adding this
configuration file to, you can do the following in your babel.config.js
file assuming you have
installed the dependency via npm install --save-dev @guidecx/config-babel
:
module.exports = {
extends: '@guidecx/config-babel',
};
Then, in your tsconfig.json
file add the following rule:
"noEmit": true
If everything is set up correctly, you should be able to use babel transpilations in your code. Check the official documentation for troubleshooting.