From 9a4e2b2096d3824661738edb142b4658cf3d9d0b Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Wed, 4 May 2022 18:41:08 -0500 Subject: [PATCH] chore: Bump Node target version to v12 (#954) * chore: Bumps Node target to v12 * docs: Adding changeset --- .changeset/breezy-cheetahs-kick.md | 5 +++++ src/index.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/breezy-cheetahs-kick.md diff --git a/.changeset/breezy-cheetahs-kick.md b/.changeset/breezy-cheetahs-kick.md new file mode 100644 index 00000000..50f627ad --- /dev/null +++ b/.changeset/breezy-cheetahs-kick.md @@ -0,0 +1,5 @@ +--- +'microbundle': patch +--- + +Bumps Node target to v12 diff --git a/src/index.js b/src/index.js index 950d0897..a913c3b0 100644 --- a/src/index.js +++ b/src/index.js @@ -593,7 +593,7 @@ function createConfig(options, entry, format, writeMeta) { defines, modern, compress: options.compress !== false, - targets: options.target === 'node' ? { node: '8' } : undefined, + targets: options.target === 'node' ? { node: '12' } : undefined, pragma: options.jsx, pragmaFrag: options.jsxFragment, typescript: !!useTypescript,