Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exercism/babel-preset-javascript
https://github.com/exercism/babel-preset-javascript
community-contributions-paused
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/exercism/babel-preset-javascript
- Owner: exercism
- Created: 2022-02-07T15:58:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T14:04:54.000Z (10 months ago)
- Last Synced: 2024-05-01T11:25:07.892Z (8 months ago)
- Topics: community-contributions-paused
- Language: JavaScript
- Size: 932 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# @exercism/babel-preset-javascript
This is the shared [`babel`][web-babel] preset configuration used by the [JavaScript track][git-javascript]. [Shareable configs][web-shareable-configs] are designed to work with the `presets` and `plugins` feature of `.babelrc` configuration files. This means you can use the same configuration you're used to on [Exercism][web-exercism] in your on projects!
> ⚠ It's customary to define dependencies such as `@babel/core` as _`peerDependency`_, so it's easy to determine its version by the including project, but because this preset is designed for end-usage, and we want to consolidate updating its dependencies in one place, we currently include these as hard dependencies.
>
> You can still override the version included via the `package-lock` file, tools like shrinkwrap, or dependency resolution such as `yarn` provides.## Usage
To use the configuration, open your [babel configuration][web-babel-configuration] file, and add the following value to `presets`. For example, for JSON based configuration files:
```json
{
"presets": ["@exercism/babel-preset-javascript"]
}
```## Configuration
Find the configuration [here](index.js). It's goal is to enable babel's preset environment, and occasionally introduce experimental syntax before it becomes widely adopted (stage 3 and beyond, for those following TC39).
[git-javascript]: https://github.com/exercism/javascript
[web-babel]: https://babeljs.io
[web-babel-configuration]: https://babeljs.io/docs/en/config-files
[web-exercism]: https://exercism.org
[web-shareable-configs]: https://babeljs.io/docs/en/presets