Skip to content

Commit e395dee

Browse files
authored
fix(plugin-legacy): require Vite 2.0.0 final (#3265)
1 parent 9438a9d commit e395dee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: packages/plugin-legacy/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @vitejs/plugin-legacy [![npm](https://img.shields.io/npm/v/@vitejs/plugin-legacy.svg)](https://npmjs.com/package/@vitejs/plugin-legacy)
22

3-
**Note: this plugin requires `vite@^2.0.0-beta.12`**.
3+
**Note: this plugin requires `vite@^2.0.0`**.
44

55
Vite's default browser support baseline is [Native ESM](https://caniuse.com/es6-module). This plugin provides support for legacy browsers that do not support native ESM.
66

@@ -12,7 +12,7 @@ By default, this plugin will:
1212

1313
- Inject `<script nomodule>` tags into generated HTML to conditionally load the polyfills and legacy bundle only in browsers without native ESM support.
1414

15-
- Inject the `import.meta.env.LEGACY` env variable, which will only be `true` in the legacy production build, and `false` in all other cases. (requires `vite@^2.0.0-beta.69`)
15+
- Inject the `import.meta.env.LEGACY` env variable, which will only be `true` in the legacy production build, and `false` in all other cases.
1616

1717
## Usage
1818

Diff for: packages/plugin-legacy/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"systemjs": "^6.8.3"
3434
},
3535
"peerDependencies": {
36-
"vite": "^2.0.0-beta.70"
36+
"vite": "^2.0.0"
3737
}
3838
}

0 commit comments

Comments
 (0)