Make Omorphia an ESM-only module (#115)
This commit is contained in:
parent
fd82ec7659
commit
9c3ff71ce4
@ -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"
|
||||
},
|
||||
|
||||
@ -13,7 +13,7 @@ export default defineConfig({
|
||||
entry: resolve(__dirname, 'lib/index.ts'),
|
||||
name: 'Omorphia',
|
||||
fileName: 'omorphia',
|
||||
formats: ['es', 'cjs'],
|
||||
formats: ['es'],
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user