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 
        }]
      ]
    })
  ]
});

/astro-babel/

    Package Sidebar

    Install

    npm i astro-babel

    Weekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    14.6 kB

    Total Files

    51

    Last publish

    Collaborators

    • kuaiblog