From 502e776cf9ca9eca489d6acbde5f8c603de56bd0 Mon Sep 17 00:00:00 2001 From: Youcef Mammar Date: Tue, 21 Sep 2021 13:57:51 +0200 Subject: [PATCH] fix(Angular IS): enable esModuleInterop (#527) * fix(Angular IS): enable esModuleInterop This works around a problem you can encounter on codeandbox ``` lite_1.default is not a function ``` * updated snapshot --- e2e/__snapshots__/templates.test.js.snap | 1 + src/templates/Angular InstantSearch/tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/e2e/__snapshots__/templates.test.js.snap b/e2e/__snapshots__/templates.test.js.snap index c23298142..fe763656d 100644 --- a/e2e/__snapshots__/templates.test.js.snap +++ b/e2e/__snapshots__/templates.test.js.snap @@ -604,6 +604,7 @@ exports[`Templates Angular InstantSearch File content: tsconfig.json 1`] = ` \\"downlevelIteration\\": true, \\"experimentalDecorators\\": true, \\"moduleResolution\\": \\"node\\", + \\"esModuleInterop\\": true, \\"importHelpers\\": true, \\"target\\": \\"es2017\\", \\"module\\": \\"es2020\\", diff --git a/src/templates/Angular InstantSearch/tsconfig.json b/src/templates/Angular InstantSearch/tsconfig.json index a4f40dd3d..d331b1b5a 100644 --- a/src/templates/Angular InstantSearch/tsconfig.json +++ b/src/templates/Angular InstantSearch/tsconfig.json @@ -13,6 +13,7 @@ "downlevelIteration": true, "experimentalDecorators": true, "moduleResolution": "node", + "esModuleInterop": true, "importHelpers": true, "target": "es2017", "module": "es2020",