{"id":19284,"library":"babel-preset-es2015-riot","title":"babel-preset-es2015-riot","description":"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.","status":"deprecated","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/riot/babel-preset-es2015-riot","tags":["javascript","riot","babel"],"install":[{"cmd":"npm install babel-preset-es2015-riot","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-es2015-riot","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-es2015-riot","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This preset is a wrapper around babel-preset-es2015.","package":"babel-preset-es2015","optional":false}],"imports":[{"note":"This is a Babel preset, not a runtime library. It is used via .babelrc or babel config, not imported in application code.","wrong":"require('babel-preset-es2015-riot') in code","symbol":"default (preset)","correct":"In .babelrc: { \"presets\": [\"es2015-riot\"] }"}],"quickstart":{"code":"// .babelrc\n{\n  \"presets\": [\"es2015-riot\"]\n}\n\n// Or if using with webpack babel-loader:\n// webpack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        exclude: /node_modules/,\n        use: {\n          loader: 'babel-loader',\n          options: {\n            presets: ['es2015-riot']\n          }\n        }\n      }\n    ]\n  }\n};","lang":"javascript","description":"Configuration for using this preset with Babel via .babelrc or webpack babel-loader."},"warnings":[{"fix":"Replace with @babel/preset-env and set targets as needed.","message":"This package is deprecated. The babel-preset-es2015 family is superseded by @babel/preset-env. Do not use for new projects.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use @babel/preset-env which compiles based on target environments.","message":"This preset only includes es2015 plugins, not es2016 or later. For modern JavaScript, use @babel/preset-env.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Add 'plugins': ['external-helpers-2'] to your .babelrc.","message":"If using babel helpers, you must add the external-helpers-2 plugin separately. This is not included in the preset.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install babel-preset-es2015-riot --save-dev'.","cause":"Package not installed or missing from node_modules.","error":"Cannot find module 'babel-preset-es2015-riot'"},{"fix":"Use the legacy Babel 6 or switch to @babel/preset-env for Babel 7.","cause":"This preset is for Babel 6, not Babel 7.","error":"Error: Requires Babel \"^7.0.0-0\", but was loaded with \"6.x.x\""}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}