hexo-renderer-babelify

Add the ability to write es6 scripts with imports/export capabilities

Usage no npm install needed!

<script type="module">
  import hexoRendererBabelify from 'https://cdn.skypack.dev/hexo-renderer-babelify';
</script>

README

hexo-renderer-babelify

Add support for ES6 javascript with import/export capability.

Install

$ npm install hexo-renderer-babelify

Options

You can configure this plugin in _config.yml.


babelify:
  presets:
    - '@babel/preset-env'
  sourceMaps: true
  • presets - Adds presets to babel config
  • sourceMaps - Adds sourceMaps to the final bundles