diff --git a/package.json b/package.json index bc25bc9..38eaa6d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@dzeio/components", "version": "0.7.1", "license": "MIT", - "main": "./index.mjs", + "main": "./index.js", "types": "./types/index.d.ts", "devDependencies": { "@babel/core": "^7.12.16", diff --git a/rollup.config.js b/rollup.config.js index 8610643..4fb7b94 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -19,7 +19,7 @@ export default [ output: [ { file: pkg.main, - format: 'es', + format: 'cjs', assetFileNames: 'style.css' } ]