diff --git a/package.json b/package.json
index e84c325e6ebbcadd6c40f8bd08d2b9322a9481ce..4aa891d0e1eb5be0f8341b944383016481d15da5 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
   "license": "MIT",
   "main": "./dist/index.js",
   "types": "./dist/index.d.ts",
+  "type": "commonjs",
   "devDependencies": {
     "@babel/core": "^7.11.4",
     "@babel/preset-env": "^7.11.0",
diff --git a/tsconfig.json b/tsconfig.json
index e880418b6314b5810989ea19b7e21fbe4241ce79..090b2c41f2dc035bc8181957140f4b7d5e8f456d 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -4,7 +4,8 @@
     "target": "es2015",
     "declaration": true,
     "outDir": "./dist",
-    "allowJs": true
+    "allowJs": true,
+    "allowSyntheticDefaultImports": true
   },
   "include": ["src/**/*"]
 }