modify .fatherrc
like this:
import { defineConfig } from "father"
export default defineConfig({
cjs: {},
esm: {},
// ! using plugin directly, console will log 'plugin is running'
// plugins: ['./plugin.ts']
// ! not work
extends: './.father.forward.ts',
})
then run pnpm run build
, you will not see the log:
info - [plugin: ./plugin.ts] plugin is running
father should load the config from extends
path, and run the plugin.
the console should log:
info - [plugin: ./plugin.ts] plugin is running