{"name":"@module-federation/webpack-bundler-runtime","version":"2.3.0","keywords":["Module Federation","bundler runtime"],"author":{"name":"zhanghang","email":"hanric.zhang@gmail.com"},"license":"MIT","_id":"@module-federation/webpack-bundler-runtime@2.3.0","maintainers":[{"name":"zackljackson","email":"zackary.l.jackson@gmail.com"},{"name":"heal","email":"TwoHeal@163.com"},{"name":"shawzhou","email":"codingzx@gmail.com"},{"name":"gioboa","email":"giorgiob.boa@gmail.com"}],"homepage":"https://github.com/module-federation/core#readme","bugs":{"url":"https://github.com/module-federation/core/issues"},"dist":{"shasum":"8447355ee1faf503b46e39f176278229b5843195","tarball":"http://registry-npm.ywwl.com/@module-federation/webpack-bundler-runtime/download/@module-federation/webpack-bundler-runtime-2.3.0.tgz","fileCount":93,"integrity":"sha512-tcD5kM15N3B8CuCVngdeBS76fY3hE64bgp+kW2zvsGf4edTHuKU73BKIBuGfhbeYxM6UpsoK1PGVJ3Pb7vEfAA==","signatures":[{"sig":"MEYCIQCNVh9gPPOqIXW4uELSbQiSy3idjo9ELKe274CywTFa6AIhANqAJamdoADo37qOoNqPcNwMMDkRo66ZIqD+8at7yRdx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@module-federation%2fwebpack-bundler-runtime@2.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":201094,"size":37574,"noattachment":false,"key":"/@module-federation/webpack-bundler-runtime/-/@module-federation/webpack-bundler-runtime-2.3.0.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:module-federation-webpack-bundler-runtime-2.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","public":true,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}},"./*":"./*","./bundler":"./dist/bundler.js","./constant":{"import":{"types":"./dist/constant.d.ts","default":"./dist/constant.js"},"require":{"types":"./dist/constant.d.ts","default":"./dist/constant.cjs"}}},"scripts":{"lint":"ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\" \"package.json\"","test":"pnpm exec jest --config jest.config.cjs --passWithNoTests","build":"tsdown --config tsdown.config.ts --filter webpack-bundler-runtime-build","test:ci":"pnpm exec jest --config jest.config.cjs --passWithNoTests --ci --coverage","pre-release":"pnpm run test && pnpm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:72bcc0ab-6621-4779-bb4c-dc8fbef6162a"}},"_resolved":"/tmp/fe7e59934ed9ad91f9bba806a728d15e/module-federation-webpack-bundler-runtime-2.3.0.tgz","_integrity":"sha512-tcD5kM15N3B8CuCVngdeBS76fY3hE64bgp+kW2zvsGf4edTHuKU73BKIBuGfhbeYxM6UpsoK1PGVJ3Pb7vEfAA==","repository":{"url":"git+https://github.com/module-federation/core.git","type":"git","directory":"packages/webpack-bundler-runtime"},"_npmVersion":"11.12.0","description":"Module Federation Runtime for webpack","directories":{},"_nodeVersion":"20.20.1","dependencies":{"@module-federation/sdk":"2.3.0","@module-federation/runtime":"2.3.0","@module-federation/error-codes":"2.3.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{".":["./dist/index.d.ts"],"bundler":["./dist/bundler.d.ts"],"constant":["./dist/constant.d.ts"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/webpack-bundler-runtime_2.3.0_1774521595301_0.6630052510802635","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@module-federation/webpack-bundler-runtime`\n\n- Extract the build runtime and combine it with the internal runtime\n- Used with webpack/rspack\n\n## Usage\n\nThe package needs to be used with webpack/rspack bundler. It will export federation object which includes runtime, instance, bundlerRuntime, initOptions, attachShareScopeMap, bundlerRuntimeOptions.\n\nAfter referencing, mount it to the corresponding bundler runtime, and then use the corresponding api/instance.\n\n- example\n\n```ts\nimport federation from '@module-federation/webpack-bundler-runtime';\n\n__webpack_require__.federation = federation;\n\n__webpack_require__.f.remotes = __webpack_require__.federation.remotes(options);\n__webpack_require__.f.consumes = __webpack_require__.federation.remotes(options);\n```\n","publish_time":1774521595487,"_cnpm_publish_time":1774521595487,"dist-tags":{"canary":"1.0.0-canary.3","experimental":"0.0.0-feat-node-support-1703050615268","latest":"2.9.3","next":"0.0.0-feat-enhanced-runtime-unification-20261110060527"}}