[browser] Separate hybrid globalization JS code to es6 module#101543
[browser] Separate hybrid globalization JS code to es6 module#101543ilonatommy merged 33 commits intodotnet:mainfrom
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/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=truedotnet.runtime.jswithout this PR:202kdotnet.runtime.jswith this PR:191k