Skip to content

Commit

Permalink
chore: Patch swiper for compatibility with Meteor bundler (RocketCh…
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Nov 19, 2024
1 parent 8688bcd commit b6f9110
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 10 deletions.
62 changes: 62 additions & 0 deletions .yarn/patches/swiper-npm-11.1.14-8126fa478a.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
diff --git a/package.json b/package.json
index 9f37b1dd9e3ea128aafb0ceef83641e864474308..795e15b1b008596f0a278ff43cb1103794c10d9d 100644
--- a/package.json
+++ b/package.json
@@ -24,6 +24,7 @@
"default": "./swiper-bundle.mjs"
},
"./css": "./swiper.css",
+ "./swiper.css": "./swiper.css",
"./css/bundle": "./swiper-bundle.css",
"./swiper-bundle.css": "./swiper-bundle.css",
"./css/a11y": "./modules/a11y.css",
@@ -49,6 +50,7 @@
"./css/thumbs": "./modules/thumbs.css",
"./css/virtual": "./modules/virtual.css",
"./css/zoom": "./modules/zoom.css",
+ "./modules/zoom.css": "./modules/zoom.css",
"./less": "./swiper.less",
"./less/a11y": "./modules/a11y.less",
"./less/autoplay": "./modules/autoplay.less",
@@ -136,6 +138,10 @@
"types": "./swiper-react.d.ts",
"default": "./swiper-react.mjs"
},
+ "./swiper-react.mjs": {
+ "types": "./swiper-react.d.ts",
+ "default": "./swiper-react.mjs"
+ },
"./vue": {
"types": "./swiper-vue.d.ts",
"default": "./swiper-vue.mjs"
@@ -144,6 +150,10 @@
"types": "./types/modules/index.d.ts",
"default": "./modules/index.mjs"
},
+ "./modules/index.mjs": {
+ "types": "./types/modules/index.d.ts",
+ "default": "./modules/index.mjs"
+ },
"./types": "./types/index.d.ts",
"./package.json": "./package.json"
},
@@ -152,6 +162,9 @@
"modules": [
"./types/modules/index.d.ts"
],
+ "modules/index.mjs": [
+ "./types/modules/index.d.ts"
+ ],
"element": [
"./swiper-element.d.ts"
],
@@ -161,6 +174,9 @@
"react": [
"./swiper-react.d.ts"
],
+ "swiper-react.mjs": [
+ "./swiper-react.d.ts"
+ ],
"vue": [
"./swiper-vue.d.ts"
]
7 changes: 0 additions & 7 deletions apps/meteor/definition/externals/swiper.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/meteor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
"strict-uri-encode": "^2.0.0",
"string-strip-html": "^7.0.3",
"suretype": "~2.4.1",
"swiper": "^11.1.14",
"swiper": "patch:swiper@npm%3A11.1.14#~/.yarn/patches/swiper-npm-11.1.14-8126fa478a.patch",
"textarea-caret": "^3.1.0",
"tinykeys": "^1.4.0",
"twilio": "^3.84.1",
Expand Down
11 changes: 9 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9493,7 +9493,7 @@ __metadata:
supertest: "npm:^7.0.0"
supports-color: "npm:~7.2.0"
suretype: "npm:~2.4.1"
swiper: "npm:^11.1.14"
swiper: "patch:swiper@npm%3A11.1.14#~/.yarn/patches/swiper-npm-11.1.14-8126fa478a.patch"
template-file: "npm:^6.0.1"
textarea-caret: "npm:^3.1.0"
tinykeys: "npm:^1.4.0"
Expand Down Expand Up @@ -36895,13 +36895,20 @@ __metadata:
languageName: node
linkType: hard

"swiper@npm:^11.1.14":
"swiper@npm:11.1.14":
version: 11.1.14
resolution: "swiper@npm:11.1.14"
checksum: 10/ccbdc7027022c500d4624103fc59dcb7de44122d17c005a04807a8998e6e8fe7032f4cb78e9ff0ac33705f32ec540df7fdf9002774079bcce5fd72cf6ba41457
languageName: node
linkType: hard

"swiper@patch:swiper@npm%3A11.1.14#~/.yarn/patches/swiper-npm-11.1.14-8126fa478a.patch":
version: 11.1.14
resolution: "swiper@patch:swiper@npm%3A11.1.14#~/.yarn/patches/swiper-npm-11.1.14-8126fa478a.patch::version=11.1.14&hash=c4398b"
checksum: 10/9177de6e116ea07e18f329464d44a2116ec2d87d1403d7072c1f39661a10325fef7e149dbb5a59a36a2e1c9915dc0caf74a5022f64e4ac296f8dfe0d70689b90
languageName: node
linkType: hard

"symbol-tree@npm:^3.2.4":
version: 3.2.4
resolution: "symbol-tree@npm:3.2.4"
Expand Down

0 comments on commit b6f9110

Please sign in to comment.