0.0.1-alpha.0 • Published 3 years ago

@guidecx/config-babel v0.0.1-alpha.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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.