Skip to content

Commit

Permalink
fix(build): update build config
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Sep 26, 2024
1 parent 9e59e1c commit 0846c10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default defineBuildConfig({
jsxFactory: 'h'
}
},
{ builder: 'mkdist', input: './src', pattern: ['**/*.js'], format: 'cjs', loaders: ['js'] },
{ builder: 'mkdist', input: './src', pattern: ['**/*.js'], format: 'esm', loaders: ['js'] }
{ builder: 'mkdist', input: './src', pattern: ['**/*.js'], format: 'cjs', loaders: ['js'], ext: 'cjs' },
{ builder: 'mkdist', input: './src', pattern: ['**/*.js'], format: 'esm', loaders: ['js'], ext: 'js' }
],
declaration: true,
clean: true,
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./ContentContainer.vue": "./dist/ContentContainer.vue",
"./ContentHeadline.vue": "./dist/ContentHeadline.vue"
},
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"files": [
"dist"
],
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
export { default as ContentContainer } from './ContentContainer.vue';
export { default as ContentHeadline } from './ContentHeadline.vue';
export { default as useContentContainer } from './useContentContainer.js';
export { default as useContentHeadline } from './useContentHeadline.js';

0 comments on commit 0846c10

Please sign in to comment.