A plugin for libuild includes node polyfill
// libuild.config.ts
import { defineConfig } from '@modern-js/libuild';
import { nodePolyfillPlugin } from '@modern-js/libuild-plugin-node-polyfill';
export = defineConfig({
plugins:[
nodePolyfillPlugin( { /* options here */ })
]
})
The exclude option is a string array about polyfill modules, this modules will be not injected, default is undefined