@@ -2,6 +2,7 @@ import { defineConfig } from "rollup";
22import typescript from "@rollup/plugin-typescript" ;
33import terser from "@rollup/plugin-terser" ;
44import virtual from "@rollup/plugin-virtual" ;
5+ import { nodeResolve } from "@rollup/plugin-node-resolve" ;
56import { readFile , writeFile , mkdir } from "fs/promises" ;
67import * as fs from "fs" ;
78import * as path from "path" ;
@@ -18,6 +19,8 @@ const isContinuousIntegrationBuild = process.env.ContinuousIntegrationBuild ===
1819const productVersion = process . env . ProductVersion || "8.0.0-dev" ;
1920const nativeBinDir = process . env . NativeBinDir ? process . env . NativeBinDir . replace ( / " / g, "" ) : "bin" ;
2021const monoWasmThreads = process . env . MonoWasmThreads === "true" ? true : false ;
22+ const wasmEnableSIMD = process . env . WasmEnableSIMD === "true" ? true : false ;
23+ const wasmEnableExceptionHandling = process . env . WasmEnableExceptionHandling === "true" ? true : false ;
2124const wasmEnableLegacyJsInterop = process . env . DISABLE_LEGACY_JS_INTEROP !== "1" ? true : false ;
2225const monoDiagnosticsMock = process . env . MonoDiagnosticsMock === "true" ? true : false ;
2326const terserConfig = {
@@ -90,6 +93,8 @@ const envConstants = {
9093 productVersion,
9194 configuration,
9295 monoWasmThreads,
96+ wasmEnableSIMD,
97+ wasmEnableExceptionHandling,
9398 monoDiagnosticsMock,
9499 gitHash,
95100 wasmEnableLegacyJsInterop,
@@ -154,7 +159,7 @@ const loaderConfig = {
154159 }
155160 ] ,
156161 external : externalDependencies ,
157- plugins : [ regexReplace ( inlineAssert ) , regexCheck ( [ checkAssert , checkNoRuntime ] ) , ...outputCodePlugins ] ,
162+ plugins : [ nodeResolve ( ) , regexReplace ( inlineAssert ) , regexCheck ( [ checkAssert , checkNoRuntime ] ) , ...outputCodePlugins ] ,
158163 onwarn : onwarn
159164} ;
160165const runtimeConfig = {
0 commit comments