create-rspack 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rspack",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,14 +1,8 @@
1
- <script lang="ts">
1
+ <script setup>
2
+ import { ref } from "vue";
2
3
  import HelloWorld from "./components/HelloWorld.vue";
3
- let title: string = "Rspack + Vue";
4
- export default {
5
- components: { HelloWorld },
6
- data() {
7
- return {
8
- title
9
- };
10
- }
11
- };
4
+
5
+ const title = ref("Rspack + Vue");
12
6
  </script>
13
7
 
14
8
  <template>
@@ -25,15 +19,17 @@ export default {
25
19
 
26
20
  <style scoped>
27
21
  .logo {
28
- height: 6em;
29
- padding: 1.5em;
30
- will-change: filter;
31
- transition: filter 300ms;
22
+ height: 6em;
23
+ padding: 1.5em;
24
+ will-change: filter;
25
+ transition: filter 300ms;
32
26
  }
27
+
33
28
  .logo:hover {
34
- filter: drop-shadow(0 0 2em #646cffaa);
29
+ filter: drop-shadow(0 0 2em #646cffaa);
35
30
  }
31
+
36
32
  .logo.vue:hover {
37
- filter: drop-shadow(0 0 2em #42b883aa);
33
+ filter: drop-shadow(0 0 2em #42b883aa);
38
34
  }
39
35
  </style>
@@ -1,16 +1,12 @@
1
- <script >
2
- import { defineComponent } from 'vue';
1
+ <script setup>
2
+ import { ref } from "vue";
3
3
 
4
- export default defineComponent({
5
- props: {
6
- msg: {
7
- type: String,
8
- }
9
- },
10
- data:function() {
11
- return {count: 0}
4
+ defineProps({
5
+ msg: {
6
+ type: String,
12
7
  }
13
8
  })
9
+ const count = ref(0);
14
10
  </script>
15
11
 
16
12
  <template>