Skip to content

Commit

Permalink
Remove @vitejs/plugin-legacy + add some polyfills (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek authored Jan 17, 2024
1 parent d094b07 commit c8f7cfd
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 753 deletions.
3 changes: 2 additions & 1 deletion LICENSE_REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Name | Version | License | URL | VendorUrl | VendorName
@types/react-dom | 18.2.18 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom | Unknown
@types/react-native | 0.72.8 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native | Unknown
@types/uuid | 9.0.7 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped.git | https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid | Unknown
@urql/devtools | 2.0.3 | MIT | https://github.com/FormidableLabs/urql-devtools-exchange.git | https://github.com/FormidableLabs/urql-devtools-exchange#readme | Formidable
@urql/exchange-graphcache | 6.4.0 | MIT | https://github.com/urql-graphql/urql.git | https://formidable.com/open-source/urql/docs/graphcache | urql GraphQL Contributors
@vitejs/plugin-legacy | 5.2.0 | MIT | https://github.com/vitejs/vite.git | https://github.com/vitejs/vite/tree/main/packages/plugin-legacy#readme | Evan You
@vitejs/plugin-react-swc | 3.5.0 | MIT | https://github.com/vitejs/vite-plugin-react-swc.git | https://github.com/ArnaudBarre | Arnaud Barré
core-js | 3.35.0 | MIT | https://github.com/zloirock/core-js.git | http://zloirock.ru | Denis Pushkarev
dayjs | 1.11.10 | MIT | https://github.com/iamkun/dayjs.git | https://day.js.org/ | iamkun
Expand Down Expand Up @@ -70,6 +70,7 @@ wonka | 6.3.4 | MIT | https://github.com/0no-co/wonka | Unknown | 0no.co
@opentelemetry/sdk-trace-node | 1.19.0 | Apache-2.0 | https://github.com/open-telemetry/opentelemetry-js.git | https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node | OpenTelemetry Authors
@opentelemetry/semantic-conventions | 1.19.0 | Apache-2.0 | https://github.com/open-telemetry/opentelemetry-js.git | https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-semantic-conventions | OpenTelemetry Authors
picocolors | 1.0.0 | ISC | https://github.com/alexeyraspopov/picocolors.git | Unknown | Alexey Raspopov
react-tggl-client | 1.6.0 | ISC | Unknown | Unknown | Nicolas Keller
type-fest | 0.21.3 | (MIT OR CC0-1.0) | https://github.com/sindresorhus/type-fest.git | https://sindresorhus.com | Sindre Sorhus
type-fest | 0.20.2 | (MIT OR CC0-1.0) | https://github.com/sindresorhus/type-fest.git | https://sindresorhus.com | Sindre Sorhus
type-fest | 3.13.1 | (MIT OR CC0-1.0) | https://github.com/sindresorhus/type-fest.git | https://sindresorhus.com | Sindre Sorhus
Expand Down
2 changes: 1 addition & 1 deletion clients/banking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@swan-io/chicane": "1.4.1",
"@swan-io/lake": "4.4.1",
"@swan-io/shared-business": "4.4.1",
"@urql/devtools": "2.0.3",
"@urql/exchange-graphcache": "6.4.0",
"core-js": "3.35.0",
"dayjs": "1.11.10",
Expand All @@ -48,7 +49,6 @@
"@types/react": "18.2.46",
"@types/react-dom": "18.2.18",
"@types/react-native": "0.72.8",
"@vitejs/plugin-legacy": "5.2.0",
"@vitejs/plugin-react-swc": "3.5.0",
"jsdom": "23.1.0",
"type-fest": "4.9.0",
Expand Down
4 changes: 3 additions & 1 deletion clients/banking/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import "@swan-io/lake/src/assets/fonts/Inter.css";
import "@swan-io/lake/src/assets/main.css";

import { ResizeObserver } from "@juggle/resize-observer";
import "core-js/actual/array/flat";
import "core-js/proposals/array-flat-map";
import "core-js/proposals/change-array-by-copy-stage-4";
import "core-js/proposals/object-from-entries";

import { Option } from "@swan-io/boxed";
import { isNullish } from "@swan-io/lake/src/utils/nullish";
Expand Down
9 changes: 1 addition & 8 deletions clients/banking/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import legacy from "@vitejs/plugin-legacy";
import react from "@vitejs/plugin-react-swc";
import path from "pathe";
import { searchForWorkspaceRoot } from "vite";
Expand Down Expand Up @@ -33,13 +32,7 @@ export default defineConfig({
},
},
logLevel: "warn",
plugins: [
legacy({
targets: ["defaults", "not IE 11"],
polyfills: ["es.object.from-entries"],
}),
react(),
],
plugins: [react()],
resolve: {
alias: {
"react-native": "react-native-web",
Expand Down
2 changes: 1 addition & 1 deletion clients/onboarding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@swan-io/chicane": "1.4.1",
"@swan-io/lake": "4.4.1",
"@swan-io/shared-business": "4.4.1",
"@urql/devtools": "2.0.3",
"@urql/exchange-graphcache": "6.4.0",
"core-js": "3.35.0",
"dayjs": "1.11.10",
Expand All @@ -48,7 +49,6 @@
"@types/react-dom": "18.2.18",
"@types/react-native": "0.72.8",
"@types/uuid": "9.0.7",
"@vitejs/plugin-legacy": "5.2.0",
"@vitejs/plugin-react-swc": "3.5.0",
"jsdom": "23.1.0",
"type-fest": "4.9.0",
Expand Down
4 changes: 3 additions & 1 deletion clients/onboarding/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import "@swan-io/lake/src/assets/fonts/Inter.css";
import "@swan-io/lake/src/assets/main.css";

import { ResizeObserver } from "@juggle/resize-observer";
import "core-js/actual/array/flat";
import "core-js/proposals/array-flat-map";
import "core-js/proposals/change-array-by-copy-stage-4";
import "core-js/proposals/object-from-entries";

import { isNullish } from "@swan-io/lake/src/utils/nullish";
import { AppRegistry } from "react-native";
Expand Down
9 changes: 1 addition & 8 deletions clients/onboarding/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import legacy from "@vitejs/plugin-legacy";
import react from "@vitejs/plugin-react-swc";
import path from "pathe";
import { searchForWorkspaceRoot } from "vite";
Expand Down Expand Up @@ -33,13 +32,7 @@ export default defineConfig({
},
},
logLevel: "warn",
plugins: [
legacy({
targets: ["defaults", "not IE 11"],
polyfills: ["es.object.from-entries"],
}),
react(),
],
plugins: [react()],
resolve: {
alias: {
"react-native": "react-native-web",
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
"prompts": "2.4.2",
"semver": "7.5.4",
"slackify-markdown": "4.4.0",
"sodium-native": "^4.0.4",
"terser": "5.26.0",
"sodium-native": "4.0.5",
"tggl-cli": "1.3.1",
"tiktoken-node": "0.0.6",
"ts-prune": "0.10.3",
Expand Down
Loading

0 comments on commit c8f7cfd

Please sign in to comment.