diff --git a/README.md b/README.md index 414bce7..e7dfc42 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,9 @@ [![Package information: NPM version](https://img.shields.io/npm/v/@ayco/astro-sw)](https://www.npmjs.com/package/@ayco/astro-sw) [![Package information: NPM license](https://img.shields.io/npm/l/@ayco/astro-sw)](https://www.npmjs.com/package/@ayco/astro-sw) -[![Package information: NPM downloads](https://img.shields.io/npm/dt/@ayco/astro-sw)](https://www.npmjs.com/package/@ayco/astro-sw) [![Bundle Size](https://img.shields.io/bundlephobia/minzip/@ayco/astro-sw)](#library-size) -The integration `serviceWorker` accepts configuration with service worker path and automatically injects needed dynamic variables such as `assets` generated by Astro for caching +The integration accepts service worker path and automatically injects dynamic variables such as `assets` generated by Astro for caching. ## Installation diff --git a/package.json b/package.json index 09f01bc..020f61b 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,11 @@ "type": "git", "url": "https://github.com/ayoayco/astro-sw" }, + "exports": { + ".": { + "import": "./dist/index.js" + } + }, "main": "index.js", "type": "module", "engines": {