astro-babel
v0.0.3
Published
Astro plugin to transpile html inline scripts and js files using Babel
Downloads
9
Readme
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
}]
]
})
]
});