astro-babel
v0.0.3
Published
Astro plugin to transpile html inline scripts and js files using Babel
Readme
Astro plugin to transpile html inline scripts and js files using Babel
Getting started
npm install astro-babel --save-devimport { 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
}]
]
})
]
});