Modern.js Module
指南
API
插件
更新日志
贡献指南
简体中文
English
指南
API
插件
更新日志
贡献指南
简体中文
English
Modern.js Module
概览

配置项

buildConfig
buildPreset
dev
plugins

Plugin API

Plugin Hooks

概览

#

配置项

buildConfig

  • alias
  • asset
  • asset.name
  • asset.limit
  • asset.path
  • asset.publicPath
  • asset.svgr
  • asset.svgr.include
  • asset.svgr.exclude
  • asset.svgr.exportType
  • autoExtension
  • autoExternal
  • autoExternal.dependencies
  • autoExternal.peerDependencies
  • banner
  • buildType
  • copy
  • copy.patterns
  • copy.options
  • define
  • dts
  • dts.abortOnError
  • dts.distPath
  • dts.enableTscBuild
  • dts.only
  • dts.respectExternal
  • dts.tsconfigPath
  • esbuildOptions
  • externalHelpers
  • externals
  • footer
  • format
  • hooks
  • input
  • jsx
  • loader
  • metafile
  • minify
  • outDir
  • platform
  • redirect
  • resolve
  • shims
  • sideEffects
  • sourceDir
  • sourceMap
  • sourceType
  • splitting
  • style
  • style.less
  • style.less.lessOptions
  • style.less.additionalData
  • style.less.implementation
  • sass
  • style.sass.sassOptions
  • style.sass.additionalData
  • style.sass.implementation
  • style.postcss
  • style.inject
  • style.autoModules
  • style.modules
  • style.tailwindcss
  • target
  • transformImport
  • transformLodash
  • tsconfig
  • umdGlobals
  • umdModuleName

buildPreset

  • npm-library
  • npm-library-with-umd
  • npm-component
  • npm-component-with-umd
  • npm-library-{es5...esnext}
  • string / function

dev

  • storybook

plugins

  • 插件执行顺序
  • 开发插件
  • 示例

Plugin API

Plugin Hooks

  • 配置钩子
  • 构建钩子
  • buildPlatform 钩子
  • 调试钩子