{"library":"requirejs-babel","title":"RequireJS Babel plugin","description":"An AMD loader plugin for RequireJS that transpiles ES6/ES2015 modules via Babel at build or runtime. Currently at version 0.0.9, this package bundles an outdated Babel 5.8.22 and has been unmaintained since 2015. It is superseded by native ES6 support in modern browsers and tools like Webpack/Rollup with Babel presets. Key differentiator: easy integration with legacy RequireJS projects needing ES6 module loading.","language":"javascript","status":"abandoned","last_verified":"Sat Apr 25","install":{"commands":["npm install requirejs-babel"],"cli":null},"imports":["define(['es6!path/to/module'], function(mod) { ... })","requirejs.config({ paths: { es6: 'path/to/es6', babel: 'path/to/babel-5.8.22.min' } })","define(['es6!module'], function(m) { ... })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// index.html\n<script data-main=\"main\" src=\"require.js\"></script>\n// main.js\nrequirejs.config({\n  paths: {\n    es6: 'bower_components/requirejs-babel/es6',\n    babel: 'bower_components/requirejs-babel/babel-5.8.22.min'\n  }\n});\nrequire(['es6!app'], function(app) { app.run(); });\n// app.js (ES6)\ndefine(function() {\n  'use strict';\n  return { run: () => console.log('ES6 works!') };\n});","lang":"javascript","description":"Shows how to configure RequireJS with the babel plugin and load an ES6 module using the 'es6!' prefix.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}