Skip to content

Commit

Permalink
klicker: Polyfill structuredClone directly
Browse files Browse the repository at this point in the history
  • Loading branch information
schneefux committed Dec 11, 2023
1 parent 379d35d commit b1dffc0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions klicker/components/ui/b-vega.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ 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: {
Expand Down
1 change: 1 addition & 0 deletions klicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@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",
Expand Down
12 changes: 6 additions & 6 deletions klicker/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4781,7 +4781,7 @@ core-js-compat@^3.31.0, core-js-compat@^3.33.1:
dependencies:
browserslist "^4.22.2"

core-js@^3.6.4, core-js@^3.6.5, core-js@^3.8.2:
core-js@^3.34.0, 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==
Expand Down Expand Up @@ -11852,16 +11852,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"
Expand Down
4 changes: 1 addition & 3 deletions web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ const config: UserConfig = {
}),
UnheadVite(),
ssr({ disableAutoFullBuild: true }),
legacy({
modernPolyfills: ['web.structured-clone'], // used by vega-lite but not widely supported yet
}),
legacy(),
process.env.VITE_GIT_REV != undefined ? sentryVitePlugin({
release: {
name: `brawltimeninja@${process.env.VITE_GIT_REV}`,
Expand Down

0 comments on commit b1dffc0

Please sign in to comment.