Skip to content

Commit 6e71e80

Browse files
committed
💩 Apply patch for the babel warning
1 parent 079503b commit 6e71e80

File tree

3 files changed

+227
-2
lines changed

3 files changed

+227
-2
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"build": "rollup -c && tsc --emitDeclarationOnly",
1919
"dev": "rollup -c -w",
2020
"prepublishOnly": "pnpm build",
21-
"check": "package-check"
21+
"check": "package-check",
22+
"postinstall": "patch-package"
2223
},
2324
"repository": {
2425
"type": "git",
@@ -59,6 +60,7 @@
5960
"@skypack/package-check": "^0.2.2",
6061
"@types/babel__core": "^7.1.12",
6162
"@types/node": "^14.14.32",
63+
"patch-package": "^6.4.6",
6264
"prettier": "^2.2.1",
6365
"rollup": "^2.40.0",
6466
"rollup-plugin-cleaner": "^1.0.0",

patches/solid-refresh+0.0.5.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/node_modules/solid-refresh/babel.js b/node_modules/solid-refresh/babel.js
2+
index 9358054..f293a14 100644
3+
--- a/node_modules/solid-refresh/babel.js
4+
+++ b/node_modules/solid-refresh/babel.js
5+
@@ -71,7 +71,7 @@ module.exports = ({ types: t }) => {
6+
];
7+
}
8+
9+
- path.replaceWithMultiple(replacement);
10+
+ path.replaceWithMultiple(replacement).forEach(declaration => path.scope.registerDeclaration(declaration));
11+
}
12+
}
13+
};

pnpm-lock.yaml

+211-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)