-
-
Notifications
You must be signed in to change notification settings - Fork 387
chore(runtime): migrate to rslib bundleless with runtime-core/rspack alignment #4352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+499
−194
Merged
Changes from 1 commit
Commits
Show all changes
189 commits
Select commit
Hold shift + click to select a range
98317e7
chore(runtime): migrate to rslib bundleless
ScriptedAlchemy 2c2543c
chore(sdk): migrate to rslib bundleless
ScriptedAlchemy aba7b69
chore(webpack-bundler-runtime): migrate to rslib bundleless
ScriptedAlchemy fcabd8d
Merge remote-tracking branch 'origin/main' into rslib/sdk
ScriptedAlchemy 442237f
Merge remote-tracking branch 'origin/main' into rslib/runtime
ScriptedAlchemy 7dcea95
Merge remote-tracking branch 'origin/main' into rslib/webpack-bundler…
ScriptedAlchemy d0753a9
Merge branch 'main' into rslib/webpack-bundler-runtime
ScriptedAlchemy bbef4e6
Merge remote-tracking branch 'origin/main' into rslib/webpack-bundler…
ScriptedAlchemy 46b7d78
Merge branch 'rslib/webpack-bundler-runtime' of github.com:module-fed…
ScriptedAlchemy 36cf2dc
Merge remote-tracking branch 'origin/main' into rslib/sdk
ScriptedAlchemy aff2359
Merge remote-tracking branch 'origin/main' into rslib/runtime
ScriptedAlchemy d196edf
fix(enhanced): resolve webpack bundler runtime esm entry
ScriptedAlchemy ffa31b9
fix(enhanced): resolve webpack bundler runtime esm entry
ScriptedAlchemy 1f471bb
fix(enhanced): resolve webpack bundler runtime esm entry
ScriptedAlchemy 54e19b9
fix(runtime-core): avoid static sdk loadScriptNode export usage
ScriptedAlchemy d2e3b27
fix(runtime-core): avoid static sdk loadScriptNode export usage
ScriptedAlchemy c66f8d6
fix(runtime-core): avoid runtime import for TreeShakingStatus
ScriptedAlchemy 25130d2
fix(enhanced,error-codes): resolve runtime paths and browser url fall…
ScriptedAlchemy 4cf48a4
fix(enhanced,error-codes): resolve runtime paths and browser url fall…
ScriptedAlchemy 6a8d9a9
fix(runtime-core): mark url as false for browser bundlers
ScriptedAlchemy 8b83efa
fix(runtime): add cjs helper interop and browser url fallback
ScriptedAlchemy d956a53
fix(runtime): add cjs helper interop and browser url fallback
ScriptedAlchemy c51392a
fix(sdk): add browser fallback for node url module
ScriptedAlchemy ed6805e
fix(runtime): add cjs helper interop and browser url fallback
ScriptedAlchemy 3c05e1b
fix(sdk): add browser fallback for node url module
ScriptedAlchemy dd29fb2
fix(enhanced,error-codes): resolve runtime paths and browser url fall…
ScriptedAlchemy 380ced4
fix(sdk): explicitly re-export utils at package root
ScriptedAlchemy 0990896
fix(webpack-bundler-runtime): disable cjs import.meta url shim
ScriptedAlchemy e0d6d97
fix(webpack-bundler-runtime): disable cjs import.meta url shim
ScriptedAlchemy 2ff5098
fix(webpack-bundler-runtime): disable cjs import.meta url shim
ScriptedAlchemy ed4adee
fix(runtime-tools): normalize webpack bundler runtime cjs interop
ScriptedAlchemy 5dd27cf
fix(runtime-tools): normalize webpack bundler runtime cjs interop
ScriptedAlchemy 0f3f799
fix(runtime-tools): normalize webpack bundler runtime cjs interop
ScriptedAlchemy b44f08a
fix(runtime-tools): avoid browser url polyfill resolution
ScriptedAlchemy 9e8bd9e
fix(runtime-tools): avoid browser url polyfill resolution
ScriptedAlchemy b8974a3
fix(runtime-tools): avoid browser url polyfill resolution
ScriptedAlchemy 94c4f51
test(chrome-devtools): stabilize proxy e2e against internal snapshot …
ScriptedAlchemy 92bb824
test(chrome-devtools): stabilize proxy e2e against internal snapshot …
ScriptedAlchemy 1bb85d0
test(chrome-devtools): stabilize proxy e2e against internal snapshot …
ScriptedAlchemy 087bd71
test(chrome-devtools): wait for manifest requests before proxy assert…
ScriptedAlchemy c3564a7
test(chrome-devtools): wait for manifest requests before proxy assert…
ScriptedAlchemy 347e9b6
test(chrome-devtools): wait for manifest requests before proxy assert…
ScriptedAlchemy 4841cf6
fix(rspack): resolve runtime entry across rslib output names
ScriptedAlchemy 267e0bd
test(chrome-devtools): remove flaky baseline proxy assertion
ScriptedAlchemy 7d93f98
test(chrome-devtools): remove flaky baseline proxy assertion
ScriptedAlchemy 6739ad3
test(chrome-devtools): remove flaky baseline proxy assertion
ScriptedAlchemy 709394f
fix(chrome-devtools): accept query params in proxy manifest checks
ScriptedAlchemy 7f835ac
fix(chrome-devtools): stabilize proxy e2e via matchedVersion
ScriptedAlchemy 4da543b
fix(module-federation): disable npm workspaces in actionlint
ScriptedAlchemy 1f045d4
fix(module-federation): run actionlint outside monorepo root
ScriptedAlchemy 42facbb
fix(module-federation): run actionlint via official container
ScriptedAlchemy 225c614
fix(core): restore esm runtime resolution and devtools proxy test
ScriptedAlchemy 56250c2
fix(enhanced): resolve runtime entries across rslib output layouts
ScriptedAlchemy f4b8ede
fix(chrome-devtools): drop flaky initial proxy assertion
ScriptedAlchemy 7216517
fix(inject-external-runtime-core-plugin): import runtime core directly
ScriptedAlchemy 974c8a1
fix(inject-external-runtime-core-plugin): avoid lockfile drift in ci
ScriptedAlchemy 193712a
fix(inject-external-runtime-core-plugin): load runtime core from esm …
ScriptedAlchemy fc59e55
fix(core): stabilize devtools proxy and runtime-core import
ScriptedAlchemy 98eb82d
Merge branch 'main' into rslib/webpack-bundler-runtime
ScriptedAlchemy b29b184
fix(core): run actionlint in container
ScriptedAlchemy c87c41e
fix(core): run actionlint in container
ScriptedAlchemy cbd1f5f
Merge remote-tracking branch 'origin/main' into rslib/sdk
ScriptedAlchemy 6e20f21
Merge remote-tracking branch 'origin/main' into rslib/runtime
ScriptedAlchemy ad48be1
Merge remote-tracking branch 'origin/main' into rslib/webpack-bundler…
ScriptedAlchemy f5ef4a4
Merge remote-tracking branch 'origin/main' into rslib/sdk
ScriptedAlchemy 6890497
Merge remote-tracking branch 'origin/main' into rslib/runtime
ScriptedAlchemy f11afc7
fix(core): use direct actionlint binary install instead of raven-actions
ScriptedAlchemy 1844fa9
fix(core): use direct actionlint binary install instead of raven-actions
ScriptedAlchemy 00b786a
fix(core): use direct actionlint binary install instead of raven-actions
ScriptedAlchemy e3953d2
fix(manifest-webpack-host): disable react refresh in demo e2e
ScriptedAlchemy aa8ea63
chore(runtime-tools): migrate to rslib bundleless
ScriptedAlchemy b3e4ecc
fix(enhanced): resolve webpack bundler runtime esm entry
ScriptedAlchemy 5c7aa89
fix(runtime): add cjs helper interop and browser url fallback
ScriptedAlchemy d2254b6
fix(sdk): add browser fallback for node url module
ScriptedAlchemy 27ef74d
fix(enhanced,error-codes): resolve runtime paths and browser url fall…
ScriptedAlchemy 2d73c2b
fix(webpack-bundler-runtime): disable cjs import.meta url shim
ScriptedAlchemy 6a6b5c3
fix(runtime-tools): normalize webpack bundler runtime cjs interop
ScriptedAlchemy bfc973a
fix(runtime-tools): avoid browser url polyfill resolution
ScriptedAlchemy 619369e
test(chrome-devtools): stabilize proxy e2e against internal snapshot …
ScriptedAlchemy 37284eb
test(chrome-devtools): wait for manifest requests before proxy assert…
ScriptedAlchemy 71f9758
test(chrome-devtools): remove flaky baseline proxy assertion
ScriptedAlchemy 0454442
fix(chrome-devtools): accept query params in proxy manifest checks
ScriptedAlchemy 2f5960c
fix(chrome-devtools): stabilize proxy e2e via matchedVersion
ScriptedAlchemy c13d0c0
fix(module-federation): disable npm workspaces in actionlint
ScriptedAlchemy 58c10af
fix(module-federation): run actionlint outside monorepo root
ScriptedAlchemy 501eab4
fix(module-federation): run actionlint via official container
ScriptedAlchemy 4901bed
fix(core): restore esm runtime resolution and devtools proxy test
ScriptedAlchemy 0a775a9
fix(enhanced): resolve runtime entries across rslib output layouts
ScriptedAlchemy 2cf11e5
fix(chrome-devtools): drop flaky initial proxy assertion
ScriptedAlchemy 3d1bc04
fix(inject-external-runtime-core-plugin): import runtime core directly
ScriptedAlchemy b0c612a
fix(inject-external-runtime-core-plugin): avoid lockfile drift in ci
ScriptedAlchemy 8b6835c
fix(inject-external-runtime-core-plugin): load runtime core from esm …
ScriptedAlchemy f9887dd
fix(core): stabilize devtools proxy and runtime-core import
ScriptedAlchemy 261d126
fix(core): harden devtools proxy and runtime-core guard
ScriptedAlchemy 914fcc3
fix(chrome-devtools): remove flaky matched-version assert
ScriptedAlchemy ca4ff51
fix(core): use direct actionlint binary install instead of raven-actions
ScriptedAlchemy af1900f
CI pipeline issues (#4384)
ScriptedAlchemy 9ee06cd
fix(inject-external-runtime-core-plugin): avoid default import of run…
ScriptedAlchemy 7cbb861
Merge remote-tracking branch 'origin/main' into HEAD
ScriptedAlchemy ca4cb45
Merge remote-tracking branch 'origin/main' into HEAD
ScriptedAlchemy 19a0b4d
Merge remote-tracking branch 'origin/main' into HEAD
ScriptedAlchemy 495a029
Merge branch 'main' into rslib/runtime-tools
ScriptedAlchemy a7784f8
fix(inject-external-runtime-core-plugin): import runtime-core esm file
ScriptedAlchemy f10cf2a
Merge remote-tracking branch 'origin/main' into rslib/runtime
ScriptedAlchemy b43ed5d
fix(core): resolve affected refs and restore proxy e2e checks
ScriptedAlchemy 49222db
fix(chrome-devtools): wait for proxy module info before asserts
ScriptedAlchemy bc4d23c
Merge branch 'main' into rslib/webpack-bundler-runtime
ScriptedAlchemy 9a49071
Merge branch 'rslib/webpack-bundler-runtime' of github.com:module-fed…
ScriptedAlchemy 2d134dd
Merge branch 'main' into rslib/sdk
ScriptedAlchemy d309b48
Merge branch 'rslib/sdk' of github.com:module-federation/core into rs…
ScriptedAlchemy 6a1fd63
Merge remote-tracking branch 'origin/main' into rslib/runtime-tools
ScriptedAlchemy 5890a49
Merge branch 'main' into rslib/runtime
ScriptedAlchemy a977cdb
Merge remote-tracking branch 'origin/main' into rslib/webpack-bundler…
ScriptedAlchemy cf1bf56
Merge remote-tracking branch 'origin/main' into rslib/sdk
ScriptedAlchemy 37f73e6
Merge remote-tracking branch 'origin/main' into rslib/runtime-tools
ScriptedAlchemy f202105
Merge remote-tracking branch 'origin/main' into rslib/runtime
ScriptedAlchemy e3ea194
fix(enhanced): reduce fallback build races
ScriptedAlchemy 2127f19
fix(chrome-devtools): stabilize proxy e2e snapshot lookup
ScriptedAlchemy 3ff8646
fix(runtime-tools): avoid false-fail on treeshake CI skip
ScriptedAlchemy 39f0a02
fix(runtime): stabilize manifest and metro CI jobs
ScriptedAlchemy 5a6df17
fix(runtime): remove browser url alias from packages
ScriptedAlchemy e6c4bbc
fix(runtime): harden bundleless CI and browser compatibility
ScriptedAlchemy 3182caa
fix(runtime): remove browser url alias for metro compatibility
ScriptedAlchemy a25d267
fix(chrome-devtools): restore stable proxy e2e assertions
ScriptedAlchemy 7042513
fix(runtime-tools): align CI gating and runtime compatibility
ScriptedAlchemy b82ddc1
fix(runtime): set bundleless output target for browser consumers
ScriptedAlchemy 2387512
fix(sdk): align runtime compatibility defaults
ScriptedAlchemy 48cc641
fix(webpack-bundler-runtime): align runtime compatibility defaults
ScriptedAlchemy 7772e4b
fix(runtime-tools): restore browser url alias for web bundles
ScriptedAlchemy 3b245f4
fix(webpack-bundler-runtime): restore browser url alias
ScriptedAlchemy afc9aae
fix(runtime): restore browser url alias for web builds
ScriptedAlchemy fda3e9e
fix(runtime): remove browser url alias to restore metro e2e
ScriptedAlchemy 617edf5
fix(webpack-bundler-runtime): keep default-only entry export shape
ScriptedAlchemy d8478f3
fix(runtime): align require entrypoints with esm output files
ScriptedAlchemy 6f12385
fix(webpack-bundler-runtime): restore cjs interop named exports
ScriptedAlchemy c370ca6
fix(webpack-bundler-runtime): route require/main to stable js entry
ScriptedAlchemy fe505ca
Merge remote-tracking branch 'origin/main' into rslib/webpack-bundler…
ScriptedAlchemy 911175e
chore(core): add changeset coverage for pr #4358
ScriptedAlchemy 14172b1
Merge remote-tracking branch 'origin/main' into rslib/sdk
ScriptedAlchemy 2e722ba
chore(core): add changeset coverage for pr #4356
ScriptedAlchemy 889f703
Merge remote-tracking branch 'origin/main' into rslib/runtime-tools
ScriptedAlchemy edc5ba7
chore(core): add changeset coverage for pr #4355
ScriptedAlchemy b80c40d
Merge remote-tracking branch 'origin/main' into rslib/runtime
ScriptedAlchemy 2870913
chore(core): add changeset coverage for pr #4352
ScriptedAlchemy 60710c9
chore(core): add contextual changeset for rslib runtime migration
ScriptedAlchemy 5d00fae
chore(sdk): add contextual changeset for rslib migration
ScriptedAlchemy d6bdbe3
chore(runtime-tools): add contextual changeset for rslib migration
ScriptedAlchemy c4b5b37
chore(runtime): add contextual changeset for rslib migration
ScriptedAlchemy 0de6dfa
Merge branch 'main' into rslib/runtime
ScriptedAlchemy 79d9481
Merge remote-tracking branch 'origin/main' into rslib/webpack-bundler…
ScriptedAlchemy b21999b
Merge remote-tracking branch 'origin/main' into rslib/runtime-tools
ScriptedAlchemy bf20eab
Merge remote-tracking branch 'origin/main' into rslib/sdk
ScriptedAlchemy 6923a54
Merge branch 'main' into rslib/runtime-tools
ScriptedAlchemy 7e94f49
Merge branch 'main' into rslib/webpack-bundler-runtime
ScriptedAlchemy 69201d9
Merge branch 'main' into rslib/sdk
ScriptedAlchemy eda0514
Merge branch 'main' into rslib/runtime
ScriptedAlchemy aa27c27
fix(runtime): point require entry to cjs build
ScriptedAlchemy 41ed1f1
Merge remote-tracking branch 'origin/rslib/runtime' into rslib/runtime
ScriptedAlchemy 9b1ef87
fix(inject-external-runtime-core-plugin): fix runtimeCore import conf…
ScriptedAlchemy 1723141
fix(enhanced): resolve runtime dist index.js output names
ScriptedAlchemy 056f45a
chore(runtime-core): align share export helper import paths
ScriptedAlchemy bfd91b6
chore(runtime-core): align share export helper import paths
ScriptedAlchemy ecd9ee2
chore(runtime-core): align share export helper import paths
ScriptedAlchemy b7f936d
chore(runtime-core): align share export helper import paths
ScriptedAlchemy 548eab3
Merge branch 'rslib/runtime-core' into rslib/runtime
ScriptedAlchemy 5ab6330
Merge branch 'rslib/runtime' into rslib/sdk
ScriptedAlchemy a21b555
chore(3009-webpack-provider): remove react refresh disable workaround
ScriptedAlchemy 12972c3
Merge branch 'rslib/sdk' into rslib/runtime-tools
ScriptedAlchemy 3c39c53
Merge branch 'rslib/runtime-tools' into rslib/webpack-bundler-runtime
ScriptedAlchemy 3766a29
Merge branch 'rslib/runtime-core' into rslib/runtime
ScriptedAlchemy 518cf46
chore(runtime): add rslib publint plugin
ScriptedAlchemy c8a9fc4
Merge branch 'rslib/runtime' into rslib/sdk
ScriptedAlchemy 61dffd3
chore(sdk): add rslib publint plugin
ScriptedAlchemy 1227a58
Merge branch 'rslib/sdk' into rslib/runtime-tools
ScriptedAlchemy fc8137e
chore(runtime-tools): add rslib publint plugin
ScriptedAlchemy fc9f036
Merge branch 'rslib/runtime-tools' into rslib/webpack-bundler-runtime
ScriptedAlchemy 424dfdc
chore(webpack-bundler-runtime): add rslib publint plugin
ScriptedAlchemy e3be7a9
Merge remote-tracking branch 'origin/rslib/runtime-core' into rslib/r…
ScriptedAlchemy 711c53d
Merge branch 'rslib/runtime-core' into rslib/runtime
ScriptedAlchemy 9392b11
Merge branch 'rslib/runtime' into rslib/sdk
ScriptedAlchemy 17cd045
Merge branch 'rslib/sdk' into rslib/runtime-tools
ScriptedAlchemy 8b57455
Merge branch 'rslib/runtime-tools' into rslib/webpack-bundler-runtime
ScriptedAlchemy 012fb00
fix(node): type beforeInit args in runtime plugin
ScriptedAlchemy 712cb40
Merge branch 'rslib/runtime-core' into rslib/runtime
ScriptedAlchemy ad59b45
Merge branch 'rslib/runtime' into rslib/sdk
ScriptedAlchemy 7270391
Merge branch 'rslib/sdk' into rslib/runtime-tools
ScriptedAlchemy e4a5fc9
Merge branch 'rslib/runtime-tools' into rslib/webpack-bundler-runtime
ScriptedAlchemy 8d1fecd
fix(node): type runtime plugin beforeInit args
ScriptedAlchemy 28d9c26
Merge remote-tracking branch 'origin/rslib/webpack-bundler-runtime' i…
ScriptedAlchemy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| import { defineConfig } from '@rslib/core'; | ||
| import { readFileSync } from 'fs'; | ||
| import { join } from 'path'; | ||
|
|
||
| const pkg = JSON.parse( | ||
| readFileSync(join(process.cwd(), 'package.json'), 'utf-8'), | ||
| ); | ||
|
|
||
| const FEDERATION_DEBUG = process.env.FEDERATION_DEBUG || ''; | ||
|
|
||
| export default defineConfig({ | ||
| lib: [ | ||
| { | ||
| format: 'esm', | ||
| syntax: 'es2021', | ||
| bundle: false, | ||
| outBase: 'src', | ||
| dts: { | ||
| bundle: false, | ||
| distPath: './dist', | ||
| }, | ||
| }, | ||
| { | ||
| format: 'cjs', | ||
| syntax: 'es2021', | ||
| bundle: false, | ||
| outBase: 'src', | ||
| dts: false, | ||
| }, | ||
| ], | ||
| source: { | ||
| entry: { | ||
| index: [ | ||
| './src/**/*.{ts,tsx,js,jsx}', | ||
| '!./src/**/*.spec.*', | ||
| '!./src/**/*.test.*', | ||
| ], | ||
| }, | ||
| define: { | ||
| __VERSION__: JSON.stringify(pkg.version), | ||
| FEDERATION_DEBUG: JSON.stringify(FEDERATION_DEBUG), | ||
| }, | ||
| tsconfigPath: './tsconfig.lib.json', | ||
| }, | ||
| output: { | ||
| target: 'node', | ||
| minify: false, | ||
| distPath: { | ||
| root: './dist', | ||
| }, | ||
| externals: [/@module-federation\//], | ||
| copy: [ | ||
| { | ||
| from: './LICENSE', | ||
| to: '.', | ||
| }, | ||
| ], | ||
| }, | ||
| tools: { | ||
| rspack: (config: any) => { | ||
| if (FEDERATION_DEBUG && config.output?.library?.type === 'module') { | ||
| config.output.library.type = 'var'; | ||
| config.output.iife = true; | ||
| config.externals = undefined; | ||
| } | ||
| return config; | ||
| }, | ||
| }, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,15 @@ | ||
| { | ||
| "extends": "./tsconfig.json", | ||
| "compilerOptions": { | ||
| "outDir": "../../dist/out-tsc", | ||
| "rootDir": "./src", | ||
| "declaration": true, | ||
| "types": ["node"] | ||
| }, | ||
| "include": ["src/**/*.ts", "global.d.ts"], | ||
| "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"] | ||
| "exclude": [ | ||
| "jest.config.ts", | ||
| "src/**/*.spec.ts", | ||
| "src/**/*.test.ts", | ||
| "dist/**" | ||
| ] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.