We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f879b0 commit 615d8b3Copy full SHA for 615d8b3
build.config.ts
@@ -0,0 +1,12 @@
1
+import { defineBuildConfig } from 'unbuild'
2
+
3
+export default defineBuildConfig({
4
+ externals: [
5
+ '@vue/compiler-dom-types',
6
+ ],
7
+ rollup: {
8
+ dts: {
9
+ respectExternal: false,
10
+ },
11
12
+})
package.json
@@ -8,11 +8,17 @@
"repository": "nuxt-contrib/vue-sfc-transformer",
"sideEffects": false,
"exports": {
- ".": "./dist/index.js"
+ ".": "./dist/index.mjs"
13
+ "main": "./dist/index.mjs",
14
+ "module": "./dist/index.mjs",
15
+ "typesVersions": {
16
+ "*": {
17
+ "*": [
18
+ "./dist/index.d.ts"
19
+ ]
20
+ }
21
},
- "main": "./dist/index.js",
- "module": "./dist/index.js",
- "types": "./dist/index.d.ts",
22
"files": [
23
"dist"
24
],
0 commit comments