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

Readme

Keywords

Package Sidebar

Install

npm i astro-babel

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

14.6 kB

Total Files

51

Last publish

Collaborators

  • kuaiblog