Commit e697872
authored
fix(swc-loader): Propagate extra build info through swc-loader (#121)
# Summary
At Canva, we use some transform steps in our webpack config before
`swc-loader` runs, which collects module build info / metadata to be
used in the webpack plugins stage. What we noticed is that `swc-loader`
is dropping that additional build info for some reason, which means we
won't be able to consume it down the line.
Seems like just adding a third parameter to the `makeLoader` returned
function and passing it through to the callbacks works correctly.
Let me know if this change looks good!1 parent ad417fa commit e697872
File tree
2 files changed
+10
-3
lines changed- .changeset
- packages/swc-loader/src
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
0 commit comments