From 55b971139557f65f249f5385b580fa45946cb1d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Thu, 2 Feb 2023 18:02:30 +0900 Subject: [PATCH] feat(legacy)!: bump modern target to support async generator (#11896) --- packages/plugin-legacy/README.md | 14 +++++-- packages/plugin-legacy/package.json | 3 +- .../src/__tests__/snippets.spec.ts | 36 ++++++++++++++++++ packages/plugin-legacy/src/index.ts | 37 ++++++++----------- packages/plugin-legacy/src/snippets.ts | 15 ++++++++ playground/legacy/__tests__/legacy.spec.ts | 8 ++++ playground/legacy/index.html | 1 + playground/legacy/main.js | 15 ++++++++ pnpm-lock.yaml | 2 + 9 files changed, 105 insertions(+), 26 deletions(-) create mode 100644 packages/plugin-legacy/src/__tests__/snippets.spec.ts create mode 100644 packages/plugin-legacy/src/snippets.ts diff --git a/packages/plugin-legacy/README.md b/packages/plugin-legacy/README.md index cdb6aff497ff42..4f7fbf60a69a49 100644 --- a/packages/plugin-legacy/README.md +++ b/packages/plugin-legacy/README.md @@ -8,7 +8,7 @@ By default, this plugin will: - Generate a polyfill chunk including SystemJS runtime, and any necessary polyfills determined by specified browser targets and **actual usage** in the bundle. -- Inject `