@vitejs/plugin-legacy
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -0,1 +1,11 @@ | ||
## [1.3.4](https://github.com/vitejs/vite/compare/plugin-legacy@1.3.3...plugin-legacy@1.3.4) (2021-05-11) | ||
### Bug Fixes | ||
* **plugin-legacy:** move polyfills in plugin post, fixes [#2786](https://github.com/vitejs/vite/issues/2786) and [#2781](https://github.com/vitejs/vite/issues/2781) ([#3023](https://github.com/vitejs/vite/issues/3023)) ([43150e3](https://github.com/vitejs/vite/commit/43150e352d164744e2fda766927053439bdf7db9)) | ||
* **plugin-legacy:** require Vite 2.0.0 final ([#3265](https://github.com/vitejs/vite/issues/3265)) ([e395dee](https://github.com/vitejs/vite/commit/e395deeb0f11ebb1bcebe69233adebaad10f77eb)) | ||
## [1.3.3](https://github.com/vitejs/vite/compare/plugin-legacy@1.3.2...plugin-legacy@1.3.3) (2021-05-03) | ||
@@ -2,0 +12,0 @@ |
16
index.js
@@ -536,13 +536,9 @@ // @ts-check | ||
name: 'vite-remove-polyfill-import', | ||
visitor: { | ||
Program: { | ||
exit(path) { | ||
path.get('body').forEach((p) => { | ||
if (t.isImportDeclaration(p)) { | ||
polyfills.add(p.node.source.value) | ||
p.remove() | ||
} | ||
}) | ||
post({ path }) { | ||
path.get('body').forEach((p) => { | ||
if (t.isImportDeclaration(p)) { | ||
polyfills.add(p.node.source.value) | ||
p.remove() | ||
} | ||
} | ||
}) | ||
} | ||
@@ -549,0 +545,0 @@ }) |
{ | ||
"name": "@vitejs/plugin-legacy", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"license": "MIT", | ||
@@ -36,4 +36,4 @@ "author": "Evan You", | ||
"peerDependencies": { | ||
"vite": "^2.0.0-beta.70" | ||
"vite": "^2.0.0" | ||
} | ||
} |
# @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`**. | ||
@@ -15,3 +15,3 @@ 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. | ||
- 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. | ||
@@ -18,0 +18,0 @@ ## Usage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
28531
0
542