diff --git a/build.config.ts b/build.config.ts index 1f51ab3..cee94df 100644 --- a/build.config.ts +++ b/build.config.ts @@ -7,6 +7,7 @@ export default defineBuildConfig({ rollup: { inlineDependencies: true, emitCJS: true, + cjsBridge: true, esbuild: { minify: true, }, diff --git a/package.json b/package.json index 411b7b6..839dae2 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { "name": "csvgtocss", - "version": "0.0.4", + "version": "0.0.5", "description": "Convert svg to css", - "source": "src/index.ts", - "main": "./dist/index.mjs", + "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", + "require": "./dist/index.cjs", "import": "./dist/index.mjs" } },