A Metalsmith plugin that transpiles JavaScript files using Babel. Current stable version is 5.1.0, released 2018-09-03. Maintained under the babel organization. Allows specifying Babel options like presets and plugins. Useful for integrating Babel into a static site build pipeline with Metalsmith. Different from using Babel standalone as it operates on Metalsmith file objects.
npm install metalsmith-babelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use metalsmith-babel with Metalsmith API, passing Babel options.
Install @babel/core and @babel/preset-env instead of babel-core and babel-preset-env.
Upgrade Node.js to 6 or higher.
Use a pattern like '**/*.js' and exclude node_modules via metalsmith ignore.
Update dependencies to @babel/core and @babel/preset-* packages.
npm install --save-dev @babel/core
Use .use(babel({...})) instead of .use(require('metalsmith-babel'))Upgrade to @babel/core and @babel/preset-env
No dependency data recorded yet.