babel-plugin-hello-world

Extended plugin sample for Babel.

Usage no npm install needed!

<script type="module">
  import babelPluginHelloWorld from 'https://cdn.skypack.dev/babel-plugin-hello-world';
</script>

README

babel-plugin-hello-world

Extended plugin sample for Babel.

Installation

$ npm install babel-plugin-hello-world

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["hello-world"]
}

Via CLI

$ babel --plugins hello-world script.js

Via Node API

require('babel').transform('code', {
  plugins: ['hello-world']
});