Skip to content

Commit e247cc0

Browse files
committed
fix: add module.exports for cjs compatibility
1 parent 43e9e2f commit e247cc0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@babel/preset-env": "^7.23.2",
4949
"@commitlint/cli": "^16.2.1",
5050
"@commitlint/config-angular": "^16.2.1",
51+
"babel-plugin-add-module-exports": "^1.0.4",
5152
"babel-plugin-transform-import-meta": "^2.2.1",
5253
"c8": "^7.7.3",
5354
"chai": "^4.3.4",
@@ -94,7 +95,8 @@
9495
}
9596
}
9697
],
97-
"babel-plugin-transform-import-meta"
98+
"babel-plugin-transform-import-meta",
99+
"babel-plugin-add-module-exports"
98100
]
99101
},
100102
"author": "Ivan Voischev <voischev.ivan@ya.ru>",

pnpm-lock.yaml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)