Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

TheThingsArchive/babel-preset-ttn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-preset-ttn

A babel preset for ttn

Installation

npm install babel-preset-ttn --save-dev

or, with yarn:

yarn add babel-preset-ttn --dev

And add the followong to your package.json:

"babel": {
  "presets": [ "ttn" ]
}

or, if you are targetting browsers:

"babel": {
  "presets": [ "ttn/browser" ]
}

This will perform more transforms to make the code work on most browsers. One thing it does not do, however, is transform import statements to require statements. This is the task of your bundler (webpack for instance).

About

A babel preset for ttn

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published