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.
npm install requirejs-babelVerified import paths — ran on the pinned version, not inferred.
Shows how to configure RequireJS with the babel plugin and load an ES6 module using the 'es6!' prefix.
Migrate to a modern bundler like Webpack or Rollup with @babel/preset-env.
If you must use RequireJS, consider using a newer transpiler like TypeScript or a different plugin.
Use the RequireJS optimizer (r.js) to pre-transpile modules in production.
Set options via requirejs.babel config object with Babel 5 API: { blacklist: ['regenerator'], optional: ['asyncToGenerator'] }.Ensure paths.es6 points to the directory containing es6.js, and paths.babel points to the babel bundle.
Check that paths.babel points to the correct babel-5.8.22.min.js file (without .js extension in config).
Add <script src='require.js' data-main='main'></script> to HTML before any define calls.
No dependency data recorded yet.