Skip to content

Commit

Permalink
docs: feedback about experimental features (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF authored Jul 24, 2023
1 parent 4e13a3d commit 09f94cd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions config/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import 'vite/modulepreload-polyfill'

動的インポートごとにプリロードするチャンクのリストは Vite によって計算されます。デフォルトでは、これらの依存関係を読み込む際に `base` を含む絶対パスが使用されます。`base` が相対パス (`''` または `'./'`) の場合、最終的にデプロイされるベースに依存する絶対パスを避けるために、実行時に `import.meta.url` が使用されます。

実験的に、`resolveDependencies` 関数を使用して、依存関係のリストとそのパスを細かく制御できるようになりました。この関数は `ResolveModulePreloadDependenciesFn` 型の関数が必要です。
実験的に、`resolveDependencies` 関数を使用して、依存関係のリストとそのパスを細かく制御できるようになりました。[フィードバックをしてください](https://github.com/vitejs/vite/discussions/13841)この関数は `ResolveModulePreloadDependenciesFn` 型の関数が必要です。

```ts
type ResolveModulePreloadDependenciesFn = (
Expand Down Expand Up @@ -218,7 +218,7 @@ Terser に渡す追加の[ミニファイオプション](https://terser.org/doc
## build.copyPublicDir
- **実験的機能**
- **実験的機能:** [フィードバックをしてください](https://github.com/vitejs/vite/discussions/13807)
- **型:** `boolean`
- **デフォルト:** `true`
Expand Down
2 changes: 1 addition & 1 deletion config/dep-optimization-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineConfig({

## optimizeDeps.disabled

- **実験的機能**
- **実験的機能:** [フィードバックをしてください](https://github.com/vitejs/vite/discussions/13839)
- **型:** `boolean | 'build' | 'dev'`
- **デフォルト:** `'build'`

Expand Down
6 changes: 3 additions & 3 deletions config/shared-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,23 +260,23 @@ export default defineConfig({

## css.devSourcemap

- **実験的機能**
- **実験的機能:** [フィードバックをしてください](https://github.com/vitejs/vite/discussions/13845)
- **型:** `boolean`
- **デフォルト:** `false`

開発時にソースマップを有効にするかどうか。

## css.transformer

- **実験的機能**
- **実験的機能: ** [フィードバックをしてください](https://github.com/vitejs/vite/discussions/13835)
- **型:** `'postcss' | 'lightningcss'`
- **デフォルト:** `'postcss'`

CSS 処理に使用するエンジンを選択します。詳細は [Lightning CSS](../guide/features.md#lightning-css) を参照してください。

## css.lightningcss

- **実験的機能**
- **実験的機能: ** [フィードバックをしてください](https://github.com/vitejs/vite/discussions/13835)
- **型:**

```js
Expand Down
2 changes: 1 addition & 1 deletion config/ssr-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SSR サーバのビルドターゲット。

## ssr.format

- **実験的機能**
- **実験的機能:** [CJS サポートは Vite 5 で削除されます](https://github.com/vitejs/vite/discussions/13816)
- **非推奨** Vite 5 では ESM 出力のみがサポートされます
- **型:** `'esm' | 'cjs'`
- **デフォルト:** `esm`
Expand Down
2 changes: 1 addition & 1 deletion guide/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ dist/my-lib.umd.cjs 0.30 KiB / gzip: 0.16 KiB
## 高度なベースパスの設定

::: warning
この機能は実験的で、semver を準拠せずに将来のマイナーバージョンで API が変更されることがあります。利用する際は Vite のマイナーバージョンを常に固定してください
この機能は実験的です。[フィードバックをしてください](https://github.com/vitejs/vite/discussions/13834)
:::

高度なユースケースでは、異なるキャッシュ戦略を利用する場合を例として、デプロイされたアセットファイルとパブリックファイルが別々のパスに存在することがあります。
Expand Down

0 comments on commit 09f94cd

Please sign in to comment.