Skip to content

Commit

Permalink
fix(plugin-legacy): require Vite 2.0.0 final (#3265)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored May 5, 2021
1 parent 9438a9d commit e395dee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-legacy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @vitejs/plugin-legacy [![npm](https://img.shields.io/npm/v/@vitejs/plugin-legacy.svg)](https://npmjs.com/package/@vitejs/plugin-legacy)

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

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.

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

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

- 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`)
- Inject the `import.meta.env.LEGACY` env variable, which will only be `true` in the legacy production build, and `false` in all other cases.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"systemjs": "^6.8.3"
},
"peerDependencies": {
"vite": "^2.0.0-beta.70"
"vite": "^2.0.0"
}
}

0 comments on commit e395dee

Please sign in to comment.