Skip to content

Package Metadata ​

Generated from packages/vite-plugin-federation/package.json.

Overview ​

FieldValue
Namevite-plugin-federation
Version1.0.2
DescriptionA Vite plugin for Module Federation.
LicenseMIT
Node>=20.19.0

Public Exports ​

ExportTarget
.import: ./dist/index.js
require: ./dist/index.cjs
types: ./dist/index.d.ts
./runtimeimport: ./dist/runtime/index.js
require: ./dist/runtime/index.cjs
types: ./dist/runtime/index.d.ts

Peer Dependencies ​

  • vite: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0

Runtime Dependencies ​

  • @module-federation/dts-plugin: 2.3.3
  • @module-federation/runtime: 2.3.3
  • @module-federation/sdk: 2.3.3
  • @rollup/pluginutils: 5.3.0
  • adm-zip: 0.5.16
  • defu: 6.1.7
  • es-module-lexer: 2.0.0
  • estree-walker: 3.0.3
  • magic-string: 0.30.21
  • pathe: 2.0.3

Package Scripts ​

ScriptCommand
buildtsup --config tsup.config.ts
cleanrimraf coverage dist
linteslint .
testvitest --config vitest.config.ts run
test:e2epnpm build && node ../../scripts/e2e-port-preflight.mjs REACT_REMOTE REACT_HOST && playwright test --config playwright.config.ts && pnpm test:e2e:compat && pnpm test:e2e:shared && pnpm test:e2e:vue && pnpm test:e2e:dts:dev
test:e2e:browser-matrixpnpm build && pnpm --filter example-react-remote build && pnpm --filter example-lit-remote build && pnpm --filter example-multi-remote-host build && node ../../scripts/e2e-port-preflight.mjs REACT_REMOTE LIT_REMOTE MULTI_REMOTE_HOST && playwright test --config playwright.browser-matrix.config.ts
test:e2e:compatpnpm build && pnpm --filter example-react-remote build && pnpm --filter example-webpack-systemjs-remote build && pnpm --filter example-originjs-compat-host build && node ../../scripts/e2e-port-preflight.mjs REACT_REMOTE WEBPACK_SYSTEM_REMOTE ORIGINJS_HOST && playwright test --config playwright.compat.config.ts
test:e2e:dts:devpnpm build && node e2e/dts-dev-hot-sync.mjs
test:e2e:multi-remotepnpm build && pnpm --filter example-react-remote build && pnpm --filter example-lit-remote build && pnpm --filter example-multi-remote-host build && node ../../scripts/e2e-port-preflight.mjs REACT_REMOTE LIT_REMOTE MULTI_REMOTE_HOST && playwright test --config playwright.multi-remote.config.ts
test:e2e:sharedpnpm build && pnpm --filter example-shared-strict-fallback-app build && pnpm --filter example-shared-host-only-remote build && pnpm --filter example-shared-host-only-host build && pnpm --filter example-shared-negotiation-remote build && pnpm --filter example-shared-negotiation-host build && pnpm --filter example-workspace-shared-remote build && pnpm --filter example-workspace-shared-host build && node ../../scripts/e2e-port-preflight.mjs SHARED_STRICT_FALLBACK SHARED_HOST_ONLY_REMOTE SHARED_HOST_ONLY_HOST SHARED_NEGOTIATION_LOADED_HOST SHARED_NEGOTIATION_LOADED_REMOTE SHARED_NEGOTIATION_VERSION_HOST SHARED_NEGOTIATION_VERSION_REMOTE WORKSPACE_SHARED_REMOTE WORKSPACE_SHARED_HOST && playwright test --config playwright.shared.config.ts
test:e2e:ssrpnpm build && pnpm --filter example-react-remote build && pnpm --filter example-react-ssr-host build && node ../../scripts/e2e-port-preflight.mjs REACT_REMOTE SSR_HOST && playwright test --config playwright.ssr.config.ts
test:e2e:vuepnpm build && node ../../scripts/e2e-port-preflight.mjs VUE_DEV_REMOTE VUE_DEV_HOST && playwright test --config playwright.vue.config.ts && node ../../scripts/e2e-port-preflight.mjs VUE_PREVIEW_REMOTE VUE_PREVIEW_HOST && playwright test --config playwright.vue-preview.config.ts
test:watchvitest --config vitest.config.ts
typechecktsc --project tsconfig.json --noEmit

Released under the MIT License.