diff --git a/package.json b/package.json index a097622..cd6ad6b 100644 --- a/package.json +++ b/package.json @@ -8,17 +8,17 @@ "type": "git", "url": "https://github.com/cuongdevjs/reactjs-social-login" }, + "type": "module", "main": "dist/index.js", - "module": "dist/index.js", + "module": "dist/index.modern.js", "typings": "dist/index.d.ts", "source": "src/index.tsx", - "type": "module", "types": "dist/index.d.ts", "engines": { "node": ">=10" }, "scripts": { - "build": "microbundle-crl --format cjs", + "build": "microbundle-crl --format modern,esm,cjs", "start": "microbundle-crl watch --format cjs", "prepare": "run-s build", "test": "run-s test:unit test:lint test:build",