@modern-js/libuild-plugin-babel
TypeScript icon, indicating that this package has built-in type declarations

2.35.1 • Public • Published

@modern-js/libuild-plugin-babel

npm version

A plugin for libuild to transform your code with babel.

Tips

For compatibility with older applications, Libuild also supports user-defined Babel configurations, such as specifying additional babel plugins and babel presets, but please note: Using Babel will result in slower builds, so do not use Babel unless necessary.

Neither .babelrc nor babel.config.js in the project root will take effect. If you need to use Babel, you need to configure it in the libuild.config.ts file.

Usage

// libuild.config.ts
import { defineConfig } from '@modern-js/libuild';
import { babelPlugin } from '@modern-js/libuild-plugin-babel';

export = defineConfig({
  plugins:[
    babelPlugin( { /* options here */ })
  ]
})

Options

See here for babel transform options

Readme

Keywords

Package Sidebar

Install

npm i @modern-js/libuild-plugin-babel

Weekly Downloads

7

Version

2.35.1

License

ISC

Unpacked Size

13.4 kB

Total Files

11

Last publish

Collaborators

  • bytednpm
  • kky_kongjiacong
  • caohuilin