diff --git a/package.json b/package.json index 9b9e7c6..18c7e3a 100644 --- a/package.json +++ b/package.json @@ -54,12 +54,12 @@ ], "type": "module", "main": "./dist/index.js", - "module": "./dist/index.esm.js", + "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { - "require": "./dist/index.cjs.js", - "import": "./dist/index.esm.js", + "require": "./dist/index.cjs", + "import": "./dist/index.mjs", "types": "./dist/index.d.ts" } }, diff --git a/readme.md b/readme.md index b8edcba..1be9071 100644 --- a/readme.md +++ b/readme.md @@ -39,7 +39,7 @@ isApng(new Uint8Array(buffer)) #### As old-school global script tag Url for latest version: `https://unpkg.com/is-apng`
-Url for specific version: `https://unpkg.com/is-apng@1.0.1/dist/index.js` +Url for specific version: `https://unpkg.com/is-apng@1.1.0/dist/index.js` ```html @@ -52,12 +52,12 @@ Url for specific version: `https://unpkg.com/is-apng@1.0.1/dist/index.js` #### As module -Url for latest version: `https://unpkg.com/is-apng/dist/index.esm.js`
-Url for specific version: `https://unpkg.com/is-apng@1.0.1/dist/index.esm.js` +Url for latest version: `https://unpkg.com/is-apng/dist/index.mjs`
+Url for specific version: `https://unpkg.com/is-apng@1.1.0/dist/index.mjs` ```html diff --git a/rollup.config.js b/rollup.config.js index f24959a..327b1b1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -23,13 +23,13 @@ export default [ ], output: [ { - file: `${isProduction ? 'dist' : 'lib'}/index.esm.js`, + file: `${isProduction ? 'dist' : 'lib'}/index.mjs`, format: 'esm', // sourcemap: isProduction, }, { name: 'isApng', - file: `${isProduction ? 'dist' : 'lib'}/index.cjs.js`, + file: `${isProduction ? 'dist' : 'lib'}/index.cjs`, format: 'cjs', // interop: 'auto', // sourcemap: isProduction, @@ -75,7 +75,7 @@ export default [ // ], // output: { // name: 'isApng', - // file: `${isProduction ? 'dist' : 'lib'}/index.cjs.js`, + // file: `${isProduction ? 'dist' : 'lib'}/index.cjs`, // format: 'cjs', // // interop: 'default', // interop: 'auto', diff --git a/src/index.test.js b/src/index.test.js index 14bee08..272e447 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -2,7 +2,7 @@ import test from 'ava' import { readFileSync } from 'node:fs' import { dirname } from 'node:path' import { fileURLToPath } from 'node:url' -import isApng from '../dist/index.esm.js' +import isApng from '../dist/index.mjs' const dir = typeof __dirname !== 'undefined' diff --git a/src/test-browser/index.html b/src/test-browser/index.html index af39bb6..59155ef 100644 --- a/src/test-browser/index.html +++ b/src/test-browser/index.html @@ -10,7 +10,7 @@