@accordproject/template-engine 2.5.4 → 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.js CHANGED
@@ -339,7 +339,7 @@ class TypeScriptToJavaScriptCompiler {
339
339
  this.typescriptUrl = typescriptUrl;
340
340
  }
341
341
  if (typeof window === "undefined") {
342
- this.ts = await import('typescript');
342
+ this.ts = (await import('typescript')).default;
343
343
  if (!this.ts) {
344
344
  throw new Error("Failed to load typescript module");
345
345
  }
@@ -367,6 +367,9 @@ ${typescript}
367
367
  const options = {
368
368
  fsMap: this.fsMap,
369
369
  tsModule: this.ts,
370
+ defaultCompilerOptions: {
371
+ target: ES2020_TARGET
372
+ },
370
373
  lzstringModule: lzstring__namespace,
371
374
  defaultOptions: {
372
375
  showEmit: true,