Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Latest commit

 

History

History

libuild-plugin-node-polyfill

@modern-js/libuild-plugin-babel

npm version

A plugin for libuild includes node polyfill

Usage

// libuild.config.ts
import { defineConfig } from '@modern-js/libuild';
import { nodePolyfillPlugin } from '@modern-js/libuild-plugin-node-polyfill';

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

Options

excludes

The exclude option is a string array about polyfill modules, this modules will be not injected, default is undefined