Skip to content

Commit

Permalink
chore: fix typo (#5697)
Browse files Browse the repository at this point in the history
  • Loading branch information
gllxl authored Nov 19, 2021
1 parent 1132041 commit 1e079f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ JSON files can be directly imported - named imports are also supported:
```js
// import the entire object
import json from './example.json'
// import a root field as named exports - helps with treeshaking!
// import a root field as named exports - helps with tree-shaking!
import { field } from './example.json'
```

Expand Down
2 changes: 1 addition & 1 deletion packages/vite/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ css files.
* css [@import](https://github.com/import) alias for windows ([71fcfdf](https://github.com/vitejs/vite/commit/71fcfdf219c0dd2aab6612e6b5ba89af1f63cd85))
* don't override resolver options ([#1740](https://github.com/vitejs/vite/issues/1740)) ([73196e5](https://github.com/vitejs/vite/commit/73196e517643af88a790ab5222d3e6b68dbbf987))
* resolve css [@import](https://github.com/import) relative imports without leading dot ([78eb32c](https://github.com/vitejs/vite/commit/78eb32c17998a96aff0f787cf4629b2683c6cd09)), closes [#1737](https://github.com/vitejs/vite/issues/1737)
* **optimizer:** do not perform treeshaking for pre-bundling ([6b619c4](https://github.com/vitejs/vite/commit/6b619c4be210dbab0164f42ee4b358c3ac34a896))
* **optimizer:** do not perform tree-shaking for pre-bundling ([6b619c4](https://github.com/vitejs/vite/commit/6b619c4be210dbab0164f42ee4b358c3ac34a896))


### Code Refactoring
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importAnalysisBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {

// Differentiate CSS imports that use the default export from those that
// do not by injecting a ?used query - this allows us to avoid including
// the CSS string when unnecessary (esbuild has trouble treeshaking
// the CSS string when unnecessary (esbuild has trouble tree-shaking
// them)
if (
specifier &&
Expand Down

0 comments on commit 1e079f4

Please sign in to comment.