From 528af75f846f971ef64e4d109ac5e22fca046b90 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Thu, 26 Dec 2024 18:56:22 -0700 Subject: [PATCH] fix: silence dev/prod warning during sync (#13244) --- .changeset/clever-phones-reply.md | 5 +++++ packages/kit/src/utils/routing.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/clever-phones-reply.md diff --git a/.changeset/clever-phones-reply.md b/.changeset/clever-phones-reply.md new file mode 100644 index 000000000000..156658340954 --- /dev/null +++ b/.changeset/clever-phones-reply.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: silence dev/prod warning during sync diff --git a/packages/kit/src/utils/routing.js b/packages/kit/src/utils/routing.js index 7d988317a058..19eef5b265c3 100644 --- a/packages/kit/src/utils/routing.js +++ b/packages/kit/src/utils/routing.js @@ -1,4 +1,5 @@ -import { BROWSER } from 'esm-env'; +// @ts-ignore - need to publish types for sub-package imports +import BROWSER from 'esm-env/browser'; const param_pattern = /^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;