Skip to content

Commit c768b6e

Browse files
docs(vue): Improve documentation for removing Typescript steps in v7 (#3002)
1 parent 33b6def commit c768b6e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/vue/quickstart.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ So, if you’d prefer to use JavaScript instead of TypeScript, you can. After ge
4545
1. Remove TypeScript dependencies:
4646

4747
```shell
48-
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript
48+
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript vue-tsc
4949
```
5050

5151
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `src/router/index.ts` and `src/main.ts`. If you're using tests, also change the extension of files in the `tests` directory.
@@ -62,6 +62,10 @@ npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @ty
6262

6363
8. Delete the `tsconfig.json` file.
6464

65+
9. In package.json, change the build script from `"build": "vue-tsc && vite build"` to `"build": "vite build"`
66+
67+
10. Install terser `npm i -D terser`.
68+
6569
## A look at a Vue Component
6670

6771
The base of our app will be in the `src` directory, and the main entry point will be our `main.ts` file. If we open our project in a code editor and open `main.ts`, we should see the following:

0 commit comments

Comments
 (0)