pika-plugin-build-web-babel

A @pika/pack plugin: Adds an babel compiled ESM distribution to your package

Usage no npm install needed!

<script type="module">
  import pikaPluginBuildWebBabel from 'https://cdn.skypack.dev/pika-plugin-build-web-babel';
</script>

README

pika-plugin-build-web-babel

using babel for @pika/plugin-build-web

https://github.com/pikapkg/builders/pull/77

params

format: string

esm or cjs

extensions: string[]

defaults to ['.js','.jsx','.ts','.tsx']

sourcemap: boolean

whether generate sourcemap file. defaults to true

history

0.9.0 / 2020.04.01

  • support worker

0.8.0 / 2020.02.29

  • support tsconfig paths