Package Metadata
Generated from packages/vite-plugin-federation/package.json.
Overview
| Field | Value |
|---|---|
| Name | vite-plugin-federation |
| Version | 1.0.2 |
| Description | A Vite plugin for Module Federation. |
| License | MIT |
| Node | >=20.19.0 |
Public Exports
| Export | Target |
|---|---|
. | import: ./dist/index.jsrequire: ./dist/index.cjstypes: ./dist/index.d.ts |
./runtime | import: ./dist/runtime/index.jsrequire: ./dist/runtime/index.cjstypes: ./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.0adm-zip:0.5.16defu:6.1.7es-module-lexer:2.0.0estree-walker:3.0.3magic-string:0.30.21pathe:2.0.3
Package Scripts
| Script | Command |
|---|---|
build | tsup --config tsup.config.ts |
clean | rimraf coverage dist |
lint | eslint . |
test | vitest --config vitest.config.ts run |
test:e2e | pnpm 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-matrix | pnpm 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:compat | pnpm 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:dev | pnpm build && node e2e/dts-dev-hot-sync.mjs |
test:e2e:multi-remote | pnpm 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:shared | pnpm 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:ssr | pnpm 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:vue | pnpm 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:watch | vitest --config vitest.config.ts |
typecheck | tsc --project tsconfig.json --noEmit |