@vitejs/plugin-legacy 3.0.0-alpha.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,9 +21,9 @@ import legacy from '@vitejs/plugin-legacy'
21
21
  export default {
22
22
  plugins: [
23
23
  legacy({
24
- targets: ['defaults', 'not IE 11']
25
- })
26
- ]
24
+ targets: ['defaults', 'not IE 11'],
25
+ }),
26
+ ],
27
27
  }
28
28
  ```
29
29
 
@@ -104,9 +104,9 @@ npm add -D terser
104
104
  modernPolyfills: [
105
105
  /* ... */
106
106
  ],
107
- renderLegacyChunks: false
108
- })
109
- ]
107
+ renderLegacyChunks: false,
108
+ }),
109
+ ],
110
110
  }
111
111
  ```
112
112
 
@@ -141,9 +141,9 @@ export default {
141
141
  plugins: [
142
142
  legacy({
143
143
  polyfills: ['es.promise.finally', 'es/map', 'es/set'],
144
- modernPolyfills: ['es.promise.finally']
145
- })
146
- ]
144
+ modernPolyfills: ['es.promise.finally'],
145
+ }),
146
+ ],
147
147
  }
148
148
  ```
149
149
 
package/dist/index.cjs CHANGED
@@ -505,7 +505,9 @@ async function detectPolyfills(code, targets, list) {
505
505
  presets: [
506
506
  [
507
507
  "env",
508
- createBabelPresetEnvOptions(targets, { ignoreBrowserslistConfig: true })
508
+ createBabelPresetEnvOptions(targets, {
509
+ ignoreBrowserslistConfig: true
510
+ })
509
511
  ]
510
512
  ]
511
513
  });
package/dist/index.mjs CHANGED
@@ -501,7 +501,9 @@ async function detectPolyfills(code, targets, list) {
501
501
  presets: [
502
502
  [
503
503
  "env",
504
- createBabelPresetEnvOptions(targets, { ignoreBrowserslistConfig: true })
504
+ createBabelPresetEnvOptions(targets, {
505
+ ignoreBrowserslistConfig: true
506
+ })
505
507
  ]
506
508
  ]
507
509
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-legacy",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0",
4
4
  "license": "MIT",
5
5
  "author": "Evan You",
6
6
  "files": [
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@babel/standalone": "^7.20.6",
39
39
  "core-js": "^3.26.1",
40
- "magic-string": "^0.26.7",
40
+ "magic-string": "^0.27.0",
41
41
  "regenerator-runtime": "^0.13.11",
42
42
  "systemjs": "^6.13.0"
43
43
  },