1.3.0 • Published 3 years ago
babel-preset-ptah v1.3.0
babel-preset-ptah
This package includes the Babel preset used by Ptah
Usage in Ptah Projects
The easiest way to use this configuration is with Ptah, which includes it by default. You don’t need to install it separately in Ptah projects.
Usage Outside of Ptah
If you want to use this Babel preset in a project not built with Ptah, you can install it with the following steps.
First, install Babel.
Then create a file named .babelrc
with following contents in the root folder of your project:
{
"presets": ["ptah"]
}
This preset uses the useBuiltIns
option with transform-object-rest-spread, which assumes that Object.assign
is available or polyfilled.