diff --git a/canister_templates/experimental.wasm b/canister_templates/experimental.wasm index 834dc6b51c..9c2a7e52b3 100644 Binary files a/canister_templates/experimental.wasm and b/canister_templates/experimental.wasm differ diff --git a/package-lock.json b/package-lock.json index f5035cf298..d8dbc80ff9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ "uuid": "^9.0.1" }, "bin": { - "azle": "src/compiler/index.ts" + "azle": "src/build/index.ts" }, "devDependencies": { "@types/deep-equal": "^1.0.4", diff --git a/src/build/experimental/commands/compile/javascript.ts b/src/build/experimental/commands/compile/javascript.ts index 989360fe67..7c6a04adbe 100644 --- a/src/build/experimental/commands/compile/javascript.ts +++ b/src/build/experimental/commands/compile/javascript.ts @@ -1,4 +1,5 @@ import { BuildOptions } from 'esbuild'; +import esbuildPluginTsc from 'esbuild-plugin-tsc'; import { join } from 'path'; import { @@ -136,11 +137,7 @@ export function getBuildOptions( 'custom_js_modules' ); - // TODO we need to remove the plugins here - // TODO we do not want anything stopping us - // TODO should I just make an empty plugin array below? Probably less confusing - const { plugins: _plugins, ...stableBuildOptions } = - getStableBuildOptions(ts); + const stableBuildOptions = getStableBuildOptions(ts); return { ...stableBuildOptions, @@ -181,6 +178,7 @@ export function getBuildOptions( https: join(customJsModulesPath, 'https.ts'), ...esmAliases }, - external: [...externalImplemented, ...externalNotImplemented] + external: [...externalImplemented, ...externalNotImplemented], + plugins: [esbuildPluginTsc()] }; }