-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[browser] Separate hybrid globalization JS code to es6 module #101543
Conversation
Sure. We will update |
src/mono/browser/runtime/hybrid-globalization/module-exports.ts
Outdated
Show resolved
Hide resolved
Blazor-connected failures in WBT require changes to https://github.com/ilonatommy/aspnetcore/blob/3e168fe85e2330621ed12d9c9524c80e0f743dc6/src/Components/dotnet-runtime-js/dotnet.d.ts#L176 (adding
Blocked by flow of dotnet/aspnetcore#55716 to runtime. |
I think that the blazor PR would not fix it because it's just type definition. The error is complaining about missing files. Likely flow of blazor with this change will fix it. cc @maraf |
This is just build setup error, isn't it? The globalization.js file is not copied to the output folder. Either the SDK doesn't correctly work or the WBT check isn't cotrect. There shouldn't be anything needed on blazor side to make it work. The |
WBT works correctly (non-Blazor |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
src/mono/browser/runtime/hybrid-globalization/globalization-stubs.ts
Outdated
Show resolved
Hide resolved
src/mono/browser/runtime/hybrid-globalization/locales-common.ts
Outdated
Show resolved
Hide resolved
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
…#101543) * dotnet.hybrid.js module creation when MT is off * Importing module * Remove globalization code from main module, create the globalization module for ST runtime. * Fix: `runtimeHelper` is not null if we cache it on module init. * Export functions used by hybrid globalization only when HG is on. * Do not try to call when methods are not initialized. * `mono_wasm_get_locale_info` is used also in non-HG mode, add it to the main module. * Check WBT for presence of globalization module if HG is switched on. * Fix MT globalization tests - NativeName is fixed there. * Globalization module is not expected to change on relink. * Fix blazor's assets.
Contributes to #98483.
HybridGlobalization=true
dotnet.runtime.js
without this PR:202k
dotnet.runtime.js
with this PR:191k