diff --git a/package.json b/package.json index 3a92f53..faddf80 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "version": "0.1.0", "author": "Ocean Protocol ", "license": "Apache-2.0", + "type": "module", "scripts": { "lint": "eslint --ignore-path .gitignore --ext .js --ext .ts --ext .tsx . && npm run type-check", "clean": "rm -rf ./dist", diff --git a/tsconfig.json b/tsconfig.json index ed7617d..01bf528 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,10 +4,9 @@ "lib": ["dom", "dom.iterable", "esnext"], "strict": true, "noEmit": true, - "module": "commonjs", + "module": "esnext", "moduleResolution": "node", - "isolatedModules": true, - "allowSyntheticDefaultImports": true + "isolatedModules": true }, "exclude": ["node_modules"], "include": ["**/*.ts", "**/*.tsx"]