Skip to content

Commit 27b37c1

Browse files
committed
BUGFIX | Fix HMR issue | issue #21
1 parent 11f78d7 commit 27b37c1

File tree

3 files changed

+443
-292
lines changed

3 files changed

+443
-292
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"types": "package/types.d.ts",
1212
"exports": {
1313
".": {
14-
"import": "./package/dist/vue-web-component-wrapper.es.js",
15-
"require": "./package/dist/vue-web-component-wrapper.umd.js"
14+
"import": "./package/dist/vue-web-component-wrapper.es.js",
15+
"require": "./package/dist/vue-web-component-wrapper.umd.js"
1616
}
1717
},
1818
"scripts": {
@@ -39,9 +39,9 @@
3939
"author": "Your Name",
4040
"license": "MIT",
4141
"devDependencies": {
42-
"@rushstack/eslint-patch": "^1.3.0",
43-
"eslint": "^8.41.0",
44-
"eslint-plugin-vue": "^9.14.1",
45-
"vitepress": "^1.2.2"
42+
"@rushstack/eslint-patch": "^1.10.3",
43+
"eslint": "^8.57.0",
44+
"eslint-plugin-vue": "^9.26.0",
45+
"vitepress": "^1.2.3"
4646
}
4747
}

package/src/api-custom-element.ts

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11

2+
import type {
3+
ComponentOptionsMixin,
4+
ComponentOptionsWithArrayProps,
5+
ComponentOptionsWithObjectProps,
6+
ComponentOptionsWithoutProps,
7+
ComponentPropsOptions,
8+
ComputedOptions,
9+
EmitsOptions,
10+
MethodOptions,
11+
RenderFunction,
12+
SetupContext,
13+
ComponentInternalInstance,
14+
VNode,
15+
RootHydrateFunction,
16+
ExtractPropTypes,
17+
ConcreteComponent,
18+
ComponentOptions,
19+
ComponentInjectOptions,
20+
SlotsType,
21+
DefineComponent
22+
} from '@vue/runtime-core';
23+
224
import {
3-
type ComponentOptionsMixin,
4-
type ComponentOptionsWithArrayProps,
5-
type ComponentOptionsWithObjectProps,
6-
type ComponentOptionsWithoutProps,
7-
type ComponentPropsOptions,
8-
type ComputedOptions,
9-
type EmitsOptions,
10-
type MethodOptions,
11-
type RenderFunction,
12-
type SetupContext,
13-
type ComponentInternalInstance,
14-
type VNode,
15-
type RootHydrateFunction,
16-
type ExtractPropTypes,
1725
createVNode,
1826
defineComponent,
1927
nextTick,
2028
warn,
21-
h,
22-
type ConcreteComponent,
23-
type ComponentOptions,
24-
type ComponentInjectOptions,
25-
type SlotsType,
26-
DefineComponent
27-
} from '@vue/runtime-core'
29+
h
30+
} from 'vue';
31+
2832
import { camelize, extend, hyphenate, isArray, toNumber } from '@vue/shared'
2933
import { hydrate, render } from 'vue'
3034

0 commit comments

Comments
 (0)