File tree 4 files changed +10
-5
lines changed
packages/vite/src/node/server
4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,8 @@ export function updateModules(
181
181
}
182
182
183
183
config . logger . info (
184
- updates
185
- . map ( ( { path } ) => colors . green ( `hmr update ` ) + colors . dim ( path ) )
186
- . join ( '\n' ) ,
184
+ colors . green ( `hmr update ` ) +
185
+ colors . dim ( [ ...new Set ( updates . map ( ( u ) => u . path ) ) ] . join ( ', ' ) ) ,
187
186
{ clear : true , timestamp : true }
188
187
)
189
188
ws . send ( {
Original file line number Diff line number Diff line change 5
5
</template >
6
6
7
7
<script setup lang="ts">
8
- const count = 1
8
+ import { INITIAL_COUNT } from ' ../utils.ts'
9
+ const count = INITIAL_COUNT
9
10
</script >
Original file line number Diff line number Diff line change
1
+ export const NAME = 'Tailwind'
2
+ export const INITIAL_COUNT = 1
Original file line number Diff line number Diff line change 5
5
<div
6
6
class =" tailwind-style bg-red-100 inline-block h-24 px-8 mb-8 text-[#888888]"
7
7
>
8
- Tailwind style
8
+ {{ name }} style
9
9
</div >
10
10
<HelloWorld />
11
11
<PugTemplate />
16
16
import { defineComponent , ref } from ' vue'
17
17
import HelloWorld from ' ../components/HelloWorld.vue'
18
18
import PugTemplate from ' ../components/PugTemplate.vue'
19
+ import { NAME } from ' ../utils.ts'
19
20
20
21
export default defineComponent ({
21
22
components: { HelloWorld , PugTemplate },
22
23
setup() {
24
+ const name = NAME
23
25
const val = ref (0 )
24
26
25
27
return {
28
+ name ,
26
29
val
27
30
}
28
31
}
You can’t perform that action at this time.
0 commit comments