JSPM

@dcloudio/uni-mp-vite

3.0.0-alpha-4070620250731001
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4479
  • Score
    100M100P100Q117818F
  • License Apache-2.0

uni-mp-vite

Package Exports

  • @dcloudio/uni-mp-vite
  • @dcloudio/uni-mp-vite/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dcloudio/uni-mp-vite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@dcloudio/uni-mp-vite

Entry

packages/uni-mp-vite/src/index.ts

小程序 vite 插件

// main.js
import { uniMainJsPlugin } from './plugins/mainJs'
// manifest.json
import { uniManifestJsonPlugin } from './plugins/manifestJson'
// pages.json
import { uniPagesJsonPlugin } from './plugins/pagesJson'
// entry uni:virtual uniPage:// uniComponent://
import { uniEntryPlugin } from './plugins/entry'
// 'uni:mp-inject'
// packages/uni-cli-shared/src/vite/plugins/inject.ts
// options.vite.inject
import { uniViteInjectPlugin } from '@dcloudio/uni-cli-shared'
// render js 过滤 options.template.filter 的内容
import { uniRenderjsPlugin } from './plugins/renderjs'
// runtime hooks uni:mp-runtime-hooks enforce='post'
import { uniRuntimeHooksPlugin } from './plugins/runtimeHooks'
// uniMiniProgramPlugin 'uni:mp', 重新组织 vite config
import { uniMiniProgramPlugin } from './plugin'
// uniUsingComponentsPlugin
import { uniUsingComponentsPlugin } from './plugins/usingComponents'

// UNI_SUBPACKAGE UNI_MP_PLUGIN