📚 Is your documentation request related to a problem?
the build.config.ts form https://regexp.dev/guide has some typeerrors.
import { MagicRegExpTransformPlugin } from 'magic-regexp/transform'
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: ['./index.ts'],
declaration: true,
hooks: {
'rollup:options': (options, config) => {
config.plugins.push(MagicRegExpTransformPlugin.rollup())
},
},
})
ERROR:
build.config.ts:9:7 - error TS18049: 'config.plugins' is possibly 'null' or 'undefined'.
9 config.plugins.push(MagicRegExpTransformPlugin.rollup())
~~~~~~~~~~~~~~
build.config.ts:9:22 - error TS2339: Property 'push' does not exist on type 'false | Plugin<any> | InputPluginOption[] | Promise<false | Plugin<any> | NullValue | InputPluginOption[]>'.
Property 'push' does not exist on type 'false'.
9 config.plugins.push(MagicRegExpTransformPlugin.rollup())
🔍 Where should you find it?
No response
ℹ️ Additional context
No response
📚 Is your documentation request related to a problem?
the build.config.ts form https://regexp.dev/guide has some typeerrors.
ERROR:
🔍 Where should you find it?
No response
ℹ️ Additional context
No response