diff --git a/index.js b/index.cjs similarity index 100% rename from index.js rename to index.cjs diff --git a/package.json b/package.json index 8a99707..d11ad8a 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "imagemin-svgo", - "version": "10.0.1", + "version": "10.0.2", "description": "SVGO imagemin plugin", "license": "MIT", "repository": "imagemin/imagemin-svgo", "type": "module", - "exports": "./index.js", + "exports": "./index.cjs", "funding": { "url": "https://github.com/sindresorhus/imagemin-svgo?sponsor=1" }, @@ -16,7 +16,7 @@ "test": "xo && ava" }, "files": [ - "index.js" + "index.cjs" ], "keywords": [ "compress", diff --git a/test.js b/test.js index c3ee44f..f38e830 100644 --- a/test.js +++ b/test.js @@ -1,5 +1,5 @@ import test from 'ava'; -import imageminSvgo from './index.js'; +import imageminSvgo from './index.cjs'; test('optimize a SVG', async t => { const buffer = await imageminSvgo()('');