Commit 0f6a365
committed
add loader for component app prop check
When a component imported a package with pinned version, the "Check
component app prop" PR check failed because Node.js was unable to
resolve the package version correctly. This commit adds a custom loader
that strips the version from the imported package, allowing the check to
pass.
For example, if the component imports `[email protected]`, the loader will
transform the import to `got`.1 parent 7a9e1aa commit 0f6a365
File tree
2 files changed
+10
-1
lines changed- .github/workflows
- scripts
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments