Registry / web-framework / babel-preset-es2015-riot

babel-preset-es2015-riot

JSON →
library1.1.0jsnpmunverified

Babel preset for Riot.js that enables ES2015 (ES6) features, including modules, in Riot tags. Latest version 1.1.0 is stable, no longer maintained. It wraps the standard babel-preset-es2015. Designed specifically for Riot.js development. Alternatives: use @babel/preset-env instead.

npm install babel-preset-es2015-riot
INSTALL
IMPORT
SIG · BABEL-PRESET-ES201
B
babel-preset-es2015-riot
web-frameworkjavascriptv1.1.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (preset)
In .babelrc: { "presets": ["es2015-riot"] }
require('babel-preset-es2015-riot') in code
This is a Babel preset, not a runtime library. It is used via .babelrc or babel config, not imported in application code.

Configuration for using this preset with Babel via .babelrc or webpack babel-loader.

// .babelrc { "presets": ["es2015-riot"] } // Or if using with webpack babel-loader: // webpack.config.js module.exports = { module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { presets: ['es2015-riot'] } } } ] } };
Debug
Known issues
deprecatedThis package is deprecated. The babel-preset-es2015 family is superseded by @babel/preset-env. Do not use for new projects.
fix
Replace with @babel/preset-env and set targets as needed.
affects: >=0.0.0
gotchaThis preset only includes es2015 plugins, not es2016 or later. For modern JavaScript, use @babel/preset-env.
fix
Use @babel/preset-env which compiles based on target environments.
affects: >=0.0.0
gotchaIf using babel helpers, you must add the external-helpers-2 plugin separately. This is not included in the preset.
fix
Add 'plugins': ['external-helpers-2'] to your .babelrc.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'babel-preset-es2015-riot'
Package not installed or missing from node_modules.
fix
Run 'npm install babel-preset-es2015-riot --save-dev'.
Error: Requires Babel "^7.0.0-0", but was loaded with "6.x.x"
This preset is for Babel 6, not Babel 7.
fix
Use the legacy Babel 6 or switch to @babel/preset-env for Babel 7.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
babel-preset-es2015requiredThis preset is a wrapper around babel-preset-es2015.
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
babel-preset-es2015-riot — npm install babel-preset-es2015-riot · libregistry