Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Make Omorphia an ESM-only module (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru authored Nov 11, 2023
1 parent fd82ec7 commit 9c3ff71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
"files": [
"dist"
],
"main": "./dist/omorphia.umd.cjs",
"module": "./dist/omorphia.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/omorphia.js",
"require": "./dist/omorphia.cjs"
"import": "./dist/omorphia.js"
},
"./dist/style.css": "./dist/style.css"
},
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineConfig({
entry: resolve(__dirname, 'lib/index.ts'),
name: 'Omorphia',
fileName: 'omorphia',
formats: ['es', 'cjs'],
formats: ['es'],
},
},
plugins: [
Expand Down

0 comments on commit 9c3ff71

Please sign in to comment.