@accordproject/template-engine 2.5.3 → 2.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -318,7 +318,7 @@ class TypeScriptToJavaScriptCompiler {
318
318
  this.typescriptUrl = typescriptUrl;
319
319
  }
320
320
  if (typeof window === "undefined") {
321
- this.ts = await import('typescript');
321
+ this.ts = (await import('typescript')).default;
322
322
  if (!this.ts) {
323
323
  throw new Error("Failed to load typescript module");
324
324
  }
@@ -346,6 +346,9 @@ ${typescript}
346
346
  const options = {
347
347
  fsMap: this.fsMap,
348
348
  tsModule: this.ts,
349
+ defaultCompilerOptions: {
350
+ target: ES2020_TARGET
351
+ },
349
352
  lzstringModule: lzstring,
350
353
  defaultOptions: {
351
354
  showEmit: true,