Commit 972c887
authored
fix(cli): Compile newly created files in watch mode (#114)
Currently in watch mode, the CLI will only watch files that existed at
the time the command was started. This means newly added files won't
trigger a rebuild.
Fixing by moving the globbing logic into the `ignored` callback instead
& watching the sources in their entirety. This should address
https://github.com/swc-project/swc/issues/105201 parent ac1ef1b commit 972c887
File tree
3 files changed
+36
-30
lines changed- .changeset
- packages/cli/src/swc
3 files changed
+36
-30
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 | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments