diff options
author | Pavel Savara <pavelsavara@microsoft.com> | 2021-12-02 12:38:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 12:38:00 +0300 |
commit | 1bd36302b4bd1a54682e27c5ef1bc826db702e03 (patch) | |
tree | d5be02c8cec226ad27c9b012b6f06243e4fe86c9 /.gitignore | |
parent | a61c1a3cf5a3391c8df61d5db739ba7d1674bba5 (diff) |
[Wasm] JS modularization (#61313)
Modularized dotnet.js
* By using emcc options MODULARIZE and EXPORT_ES6, depending on WasmEnableES6 to produce ES6 or CommonJS modules respectively.
* WasmEnableES6 enables WasmBuildNative because dotnet.js need to be re-linked
* CommonJS version is able to be loaded into global namespace and behaves as before this change.
* Added new es6/*.js and es6/*.js files which are included in dotnet.js creation.
* Key aspects are documented in src/mono/wasm/runtime/modularize-dotnet.md of this PR.
* Improved dotnet.d.ts it is now generated into version control too, so that we could observe how it evolves.
* Removed legacy --testing argument and simplified is_testing logic in the the samples.
* Added browser-es6 sample app, which uses WasmEnableES6=true to compile dotnet.js as ES6 module.
* Added browser-legacy sample, which uses dotnet.js CommonJS module and loads it into global namespace.
* Added package.json into the nupkg
Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Katelyn Gadd <kg@luminance.org>
Co-authored-by: Marek FiĊĦera <mara@neptuo.com>
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 833551119f2..c1a783db2aa 100644 --- a/.gitignore +++ b/.gitignore @@ -186,6 +186,7 @@ node_modules/ *.metaproj *.metaproj.tmp bin.localpkg/ +src/mono/wasm/runtime/dotnet.d.ts.sha256 # RIA/Silverlight projects Generated_Code/ |