Skip to content

Commit

Permalink
fix: allow modern browser module
Browse files Browse the repository at this point in the history
  • Loading branch information
cafadev committed Jun 20, 2023
1 parent afa0257 commit 97d1189
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"url": "https://github.com/fancy-crud/oruga-wrapper"
},
"main": "./dist/fancy-crud-oruga-wrapper.umd.js",
"module": "./dist/fancy-crud-oruga-wrapper.es.js",
"module": "./dist/fancy-crud-oruga-wrapper.mjs",
"exports": {
".": {
"import": "./dist/fancy-crud-oruga-wrapper.es.js",
"import": "./dist/fancy-crud-oruga-wrapper.mjs",
"require": "./dist/fancy-crud-oruga-wrapper.umd.js"
},
"./dist/fancy-crud-oruga-wrapper.css": {
Expand All @@ -35,7 +35,7 @@
},
"peerDependencies": {
"@fancy-crud/core": "^1.4.0",
"@fancy-crud/vue": "^1.5.2",
"@fancy-crud/vue": "^1.5.3",
"@oruga-ui/oruga-next": "^0.6.0",
"@vueuse/core": "^9.9.0",
"esno": "0.10.0",
Expand All @@ -44,7 +44,7 @@
},
"dependencies": {
"@fancy-crud/core": "^1.4.0",
"@fancy-crud/vue": "^1.5.2",
"@fancy-crud/vue": "^1.5.3",
"@oruga-ui/oruga-next": "^0.6.0",
"@vueuse/core": "^9.9.0",
"esno": "0.10.0",
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export default defineConfig({
lib: {
name,
entry: path.resolve(__dirname, 'src/index.ts'),
formats: ['es', 'cjs'],
fileName: format => `fancy-crud-oruga-wrapper.${format}.js`,
fileName: 'fancy-crud-oruga-wrapper',
},
rollupOptions: {
external: ['vue', '@oruga-ui/oruga-next', '@fancy-crud/core', '@fancy-crud/vue'],
Expand Down

0 comments on commit 97d1189

Please sign in to comment.