Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Savara <pavelsavara@microsoft.com>2021-11-17 08:52:25 +0300
committerGitHub <noreply@github.com>2021-11-17 08:52:25 +0300
commitda0e0f73e24036a88411dde8158df80e5f4bff01 (patch)
tree2feab96eba3b6853bbd46e880af1f988978ef552 /src/tasks/WasmAppBuilder/WasmAppBuilder.cs
parenta1b391bde7ef9e58c19f217ed367c8e8fea7cac3 (diff)
[wasm] renames and cleanup before modularization (#61596)
- no imports from outer scope - move dotnet to -extern-pre-js - re-enable JS minification with ES2018 - rename main javaScript files to main.js and test-main.js - sample and test script cleanup - rename set_exit_code method - rewrite test start as async method - improve script loading via script element on page in test - use BINDING.bind_static_method instead of INTERNAL where possible - better .d.ts exports - formatted html files - renamed modules.ts to imports.ts which makes more sense - improved error propagation - renamed __initializeImportsAndExports - delayed exit and stdout flush
Diffstat (limited to 'src/tasks/WasmAppBuilder/WasmAppBuilder.cs')
-rw-r--r--src/tasks/WasmAppBuilder/WasmAppBuilder.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tasks/WasmAppBuilder/WasmAppBuilder.cs b/src/tasks/WasmAppBuilder/WasmAppBuilder.cs
index bf6708d4268..f592f488327 100644
--- a/src/tasks/WasmAppBuilder/WasmAppBuilder.cs
+++ b/src/tasks/WasmAppBuilder/WasmAppBuilder.cs
@@ -174,12 +174,12 @@ public class WasmAppBuilder : Task
if (!FileCopyChecked(item.ItemSpec, dest, "NativeAssets"))
return false;
}
- FileCopyChecked(MainJS!, Path.Combine(AppDir, "runtime.js"), string.Empty);
+ FileCopyChecked(MainJS!, Path.Combine(AppDir, "main.js"), string.Empty);
string indexHtmlPath = Path.Combine(AppDir, "index.html");
if (!File.Exists(indexHtmlPath))
{
- var html = @"<html><body><script type=""text/javascript"" src=""runtime.js""></script></body></html>";
+ var html = @"<html><body><script type=""text/javascript"" src=""main.js""></script></body></html>";
File.WriteAllText(indexHtmlPath, html);
}