Skip to content

Commit 0c59d70

Browse files
committed
WIP: fix moment import issues with tests
1 parent e5f3d05 commit 0c59d70

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/cdk/tsconfig-tests.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
{
55
"extends": "./tsconfig-build",
66
"compilerOptions": {
7+
// Needed for Moment.js since it doesn't have a default export.
8+
"allowSyntheticDefaultImports": true,
79
"importHelpers": false,
810
"module": "commonjs",
911
"target": "es5",

src/lib/tsconfig-tests.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
{
55
"extends": "./tsconfig-build",
66
"compilerOptions": {
7+
// Needed for Moment.js since it doesn't have a default export.
8+
"allowSyntheticDefaultImports": true,
79
"importHelpers": false,
810
"module": "commonjs",
911
"target": "es5",

0 commit comments

Comments
 (0)