Skip to content

Commit f042fac

Browse files
committed
chore: fixed export issue and standardized vite config
1 parent 1eec552 commit f042fac

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vue-interface/activity-indicator": patch
3+
---
4+
5+
Standardized vite.config.js and fixed issue with require export.

packages/activity-indicator/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"source": "./index.ts",
1313
"types": "./dist/index.d.ts",
1414
"style": "./index.css",
15-
"require": "./dist/activity-indicator.umd.js",
15+
"require": "./dist/activity-indicator.umd.cjs",
1616
"import": "./dist/activity-indicator.js"
1717
},
1818
"./css": "./index.css"
@@ -53,4 +53,4 @@
5353
"peerDependencies": {
5454
"vue": "^3.3.4"
5555
}
56-
}
56+
}

packages/activity-indicator/vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const external = [
1414
];
1515

1616
export default ({ command }) => defineConfig({
17+
resolve: command === 'serve'
18+
? ['source', 'import', 'module', 'browser', 'default']
19+
: ['import', 'module', 'browser', 'default'],
1720
build: {
1821
sourcemap: command === 'build',
1922
lib: {

0 commit comments

Comments
 (0)