astro-babel
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Astro plugin to transpile html inline scripts and js files using Babel

Getting started

npm install astro-babel --save-dev
import { defineConfig } from 'astro/config';
import babelScripts from "astro-babel";
export default defineConfig({
  integrations: [ 
    babelScripts({
      presets: [
        ['minify', {
        builtIns: false,
        evaluate: false,
        mangle: false,
        }], 
        ["@babel/preset-env", { 
          "modules": false 
        }]
      ]
    })
  ]
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    2
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i astro-babel

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

14.6 kB

Total Files

51

Last publish

Collaborators

  • kuaiblog