Skip to content

Commit 5ac7175

Browse files
authored
chore: vite cjs deprecation (#944)
1 parent 3c4d2ba commit 5ac7175

9 files changed

+15
-16
lines changed

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"dev_version": "1.0",
88
"scripts": {
99
"start": "NODE_ENV=dev yarn build:dev && NODE_ENV=dev vite --mode dev",
10-
"build:section:app": "vite build --config vite.config.ts",
11-
"build:section:background": "vite build --config vite.config.background.ts",
12-
"build:section:content": "vite build --config vite.config.content.ts",
13-
"build:section:worker": "vite build -c vite.config.worker.ts",
14-
"build-hosted:section:worker": "vite build --config vite.config.worker.ts",
15-
"build-hosted:section:site": "vite build --config vite.config.hosted.ts",
10+
"build:section:app": "vite build --config vite.config.mts",
11+
"build:section:background": "vite build --config vite.config.background.mts",
12+
"build:section:content": "vite build --config vite.config.content.mts",
13+
"build:section:worker": "vite build -c vite.config.worker.mts",
14+
"build-hosted:section:worker": "vite build --config vite.config.worker.mts",
15+
"build-hosted:section:site": "vite build --config vite.config.hosted.mts",
1616
"build:dev": "NODE_ENV=dev run-s build:section:*",
1717
"build:prod": "NODE_ENV=production vue-tsc --noEmit && run-s build:section:*",
1818
"build-hosted:dev": "NODE_ENV=dev run-s build-hosted:section:*",
1919
"build-hosted:prod": "NODE_ENV=production vue-tsc --noEmit && run-s build-hosted:section:*",
20-
"watch:section:background": "vite build --config vite.config.background.ts --watch",
21-
"watch:section:content": "vite build --config vite.config.content.ts --watch",
22-
"watch:section:worker": "vite build --config vite.config.worker.ts --watch",
20+
"watch:section:background": "vite build --config vite.config.background.mts --watch",
21+
"watch:section:content": "vite build --config vite.config.content.mts --watch",
22+
"watch:section:worker": "vite build --config vite.config.worker.mts --watch",
2323
"watch": "NODE_ENV=dev run-p watch:section:*",
2424
"format": "prettier -w .",
2525
"lint:style": "stylelint **/*.{vue,scss,css} --ignore-path .gitignore",

src/app/options/Options.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ body[data-seventv-app] {
8686
8787
.seventv-options {
8888
height: 100%;
89+
width: 100%;
8990
background: var(--seventv-background-shade-1);
90-
width: max-content;
9191
9292
&.no-header {
9393
background: none;

src/app/options/router/router.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { RouteRecordRaw, createRouter, createWebHashHistory } from "vue-router";
2-
import Onboarding from "../views/Onboarding/Onboarding.vue";
32

43
const routes = [
54
{
@@ -9,7 +8,7 @@ const routes = [
98
{
109
path: "onboarding/:step?",
1110
name: "Onboarding",
12-
component: Onboarding,
11+
component: () => import("../views/Onboarding/Onboarding.vue"),
1312
},
1413
],
1514
},

tsconfig.node.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
},
99
"include": [
1010
"vite.utils.ts",
11-
"vite.config.ts",
12-
"vite.config.worker.ts",
13-
"vite.config.background.ts",
14-
"vite.config.content.ts",
11+
"vite.config.mts",
12+
"vite.config.worker.mts",
13+
"vite.config.background.mts",
14+
"vite.config.content.mts",
1515
"manifest.config.ts",
1616
"package.json"
1717
]
File renamed without changes.
File renamed without changes.
File renamed without changes.

vite.config.ts vite.config.mts

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)