Skip to content

Commit

Permalink
web, klicker: Move polyfills to web
Browse files Browse the repository at this point in the history
  • Loading branch information
schneefux committed Dec 13, 2023
1 parent 56a85ca commit cc88502
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion klicker/components/ui/b-vega.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 0 additions & 1 deletion klicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion 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.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==
Expand Down
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions web/renderer/all.page.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
12 changes: 6 additions & 6 deletions web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit cc88502

Please sign in to comment.