diff --git a/klicker/components/ui/b-vega.vue b/klicker/components/ui/b-vega.vue index 00bcad73..be514c1a 100644 --- a/klicker/components/ui/b-vega.vue +++ b/klicker/components/ui/b-vega.vue @@ -35,7 +35,6 @@ import { faDownload } from '@fortawesome/free-solid-svg-icons' import BShimmer from './b-shimmer.vue' import { defineComponent, onMounted, onUnmounted, PropType, ref, watch } from 'vue' import { useResizeObserver } from '@vueuse/core' -import 'core-js/actual/structured-clone' // used by vega-lite but not widely supported yet -> polyfill it export default defineComponent({ components: { diff --git a/klicker/package.json b/klicker/package.json index 4425cb6e..6691ad07 100644 --- a/klicker/package.json +++ b/klicker/package.json @@ -39,7 +39,6 @@ "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.10", "@vueuse/core": "^10.6.1", - "core-js": "^3.34.0", "d3-format": "^3.1.0", "date-fns": "^2.30.0", "html2canvas": "^1.4.1", diff --git a/klicker/yarn.lock b/klicker/yarn.lock index b7de4d84..45ae8507 100644 --- a/klicker/yarn.lock +++ b/klicker/yarn.lock @@ -4781,7 +4781,7 @@ core-js-compat@^3.31.0, core-js-compat@^3.33.1: dependencies: browserslist "^4.22.2" -core-js@^3.34.0, core-js@^3.6.4, core-js@^3.6.5, core-js@^3.8.2: +core-js@^3.6.4, core-js@^3.6.5, core-js@^3.8.2: version "3.34.0" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.34.0.tgz#5705e6ad5982678612e96987d05b27c6c7c274a5" integrity sha512-aDdvlDder8QmY91H88GzNi9EtQi2TjvQhpCX6B1v/dAZHU1AuLgHvRh54RiOerpEhEW46Tkf+vgAViB/CWC0ag== diff --git a/web/package.json b/web/package.json index 2129a702..1851d43d 100644 --- a/web/package.json +++ b/web/package.json @@ -27,6 +27,7 @@ "@vitejs/plugin-vue": "^4.5.2", "compression": "^1.7.4", "cookie": "^0.6.0", + "core-js": "^3.34.0", "cross-env": "^7.0.3", "dotenv": "^16.3.1", "etag": "^1.8.1", diff --git a/web/renderer/all.page.client.ts b/web/renderer/all.page.client.ts index 28b0b007..b0fbd434 100644 --- a/web/renderer/all.page.client.ts +++ b/web/renderer/all.page.client.ts @@ -11,6 +11,10 @@ import { RewriteFrames as RewriteFramesIntegration, } from '@sentry/integrations' +// polyfills +import 'core-js/stable/structured-clone' // used by vega-lite +import 'core-js/stable/object/from-entries' + export { render } async function render(pageContext: PageContext) { diff --git a/web/yarn.lock b/web/yarn.lock index 5404c6a7..2c84764e 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -4774,7 +4774,7 @@ core-js-compat@^3.31.0, core-js-compat@^3.33.1: dependencies: browserslist "^4.22.2" -core-js@^3.33.2, core-js@^3.6.5: +core-js@^3.33.2, core-js@^3.34.0, core-js@^3.6.5: version "3.34.0" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.34.0.tgz#5705e6ad5982678612e96987d05b27c6c7c274a5" integrity sha512-aDdvlDder8QmY91H88GzNi9EtQi2TjvQhpCX6B1v/dAZHU1AuLgHvRh54RiOerpEhEW46Tkf+vgAViB/CWC0ag== @@ -10946,16 +10946,16 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== -yallist@*, yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - yallist@^3.0.2: version "3.1.1" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + yaml@^2.3.4: version "2.3.4" resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.4.tgz#53fc1d514be80aabf386dc6001eb29bf3b7523b2"