File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 22
33基本的に、Vite を使用した開発は静的ファイルサーバーを使用した時とそれほど変わりません。しかし、Vite はバンドラーベースのセットアップで一般的な機能をサポートするためにネイティブ ESM をインポートすることで様々な拡張機能を提供します。
44
5- ## NPM の依存関係の解決と事前バンドル
5+ ## npm の依存関係の解決と事前バンドル
66
77ネイティブ ES のインポートは次のような生のモジュールをサポートしていません:
88
Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ Vite は [Node.js](https://nodejs.org/en/) 18+ または 20+ のバージョン
4949
5050::: code-group
5151
52- ``` bash [NPM ]
52+ ``` bash [npm ]
5353$ npm create vite@latest
5454```
5555
5656``` bash [Yarn]
5757$ yarn create vite
5858```
5959
60- ``` bash [PNPM ]
60+ ``` bash [pnpm ]
6161$ pnpm create vite
6262```
6363
@@ -73,7 +73,7 @@ $ bun create vite
7373
7474::: code-group
7575
76- ``` bash [NPM ]
76+ ``` bash [npm ]
7777# npm 7+ は追加で 2 つのダッシュが必要:
7878$ npm create vite@latest my-vue-app -- --template vue
7979```
@@ -82,7 +82,7 @@ $ npm create vite@latest my-vue-app -- --template vue
8282$ yarn create vite my-vue-app --template vue
8383```
8484
85- ``` bash [PNPM ]
85+ ``` bash [pnpm ]
8686$ pnpm create vite my-vue-app --template vue
8787```
8888
@@ -118,15 +118,15 @@ npm run dev
118118
119119::: code-group
120120
121- ``` bash [NPM ]
121+ ``` bash [npm ]
122122$ npm install -D vite
123123```
124124
125125``` bash [Yarn]
126126$ yarn add -D vite
127127```
128128
129- ``` bash [PNPM ]
129+ ``` bash [pnpm ]
130130$ pnpm add -D vite
131131```
132132
@@ -146,15 +146,15 @@ $ bun add -D vite
146146
147147::: code-group
148148
149- ``` bash [NPM ]
149+ ``` bash [npm ]
150150$ npx vite
151151```
152152
153153``` bash [Yarn]
154154$ yarn vite
155155```
156156
157- ``` bash [PNPM ]
157+ ``` bash [pnpm ]
158158$ pnpm vite
159159```
160160
You can’t perform that action at this time.
0 commit comments