-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dev): ignore missing react-dom/client for react 17
- Loading branch information
Showing
7 changed files
with
222 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@remix-run/dev": patch | ||
--- | ||
|
||
ignore missing react-dom/client for react 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# dev server | ||
|
||
- can esbuild get interrupted from writing files? | ||
- what if some builds succeed and others fail? | ||
|
||
- need to clear out old files... | ||
|
||
- [ ] delete old assets (by mtime) when new build finishes? | ||
|
||
# unstable_dev | ||
|
||
- https://github.com/remix-run/remix/issues/5711 | ||
- https://github.com/remix-run/remix/issues/5663 | ||
- https://github.com/remix-run/remix/issues/5642 | ||
- https://github.com/remix-run/remix/issues/5492 | ||
|
||
## needs repro or docs | ||
|
||
- https://github.com/remix-run/remix/issues/5626 | ||
- https://github.com/remix-run/remix/issues/5517 | ||
|
||
# perf | ||
|
||
- https://github.com/remix-run/remix/issues/5629 | ||
|
||
--- | ||
|
||
# node builtins | ||
|
||
- esbuild plugin for bare modules | ||
- if not a dep and a built in: | ||
- set side-effects to false | ||
- set resolve to some sentinel that is easily grep'able thing | ||
- throw some exception that is nicer for browser | ||
- search `public/build/` dir for that sentinel, and error if we find it | ||
- ^can we do this just for node? | ||
|
||
# TODO | ||
|
||
- [ ] better types | ||
|
||
- https://github.com/remix-run/remix/issues/3931 | ||
- https://github.com/remix-run/remix/issues/5211 | ||
- https://github.com/remix-run/remix/issues/4371 | ||
|
||
- [ ] MDX? | ||
|
||
## quick wins | ||
|
||
- [ ] repro live reload https://github.com/remix-run/remix/issues/3237 | ||
- [ ] filter out `node:{builtin}` from browser https://github.com/remix-run/remix/discussions/4544 | ||
|
||
## follow up | ||
|
||
- [ ] investigate leaky stdio from integration tests. can we use `captureError` or `cli.shouldError`? | ||
- [ ] refactor tests to use new, optimized cli utils | ||
- [ ] don't overwrite tsconfig when readConfig is called. | ||
- [ ] Instead, maybe overwrite tsconfig whenever any commands are called |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# TODO | ||
|
||
- [ ] remove `metafile` from css compiler config | ||
- [ ] consider making subcompilers into just configs | ||
|
||
- [ ] `remix watch` should _not_ live reload | ||
- [ ] clean up subcompiler configs | ||
- [ ] MEASURE esbuild incremental vs initial for Remix projects. might not be that different |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# UI | ||
- `clear` screen | ||
- newlines before and after initial | ||
- show `Remix`, version, ready time, network | ||
- capture shortcuts | ||
- help | ||
- app server | ||
- dev server | ||
|
||
- show errors | ||
- progress indication for rebuilds | ||
|
||
## Commands | ||
|
||
```sh | ||
npx create-remix | ||
remix build [--watch] # watch just watch for file changes and rebuilds | ||
remix dev | ||
``` | ||
|
||
## UI | ||
|
||
```sh | ||
Remix v2.0.0 ready in 362 ms | ||
|
||
➜ Local: http://127.0.0.1:3000 | ||
➜ Network: use --host to expose | ||
➜ press h to show help | ||
|
||
POST /products | ||
POST /products | ||
GET /products/1 | ||
|
||
🔄 Rebuilding | ||
- File changed: app/routes/products/$pid.tsx | ||
- 🔥 Component changed 👉 HMR | ||
- took 200ms | ||
|
||
GET /products/2 | ||
GET /products/1 | ||
|
||
🔄 Rebuilding | ||
- File changed: app/routes/products/$pid.tsx | ||
- 🔥 Component changed 👉 HMR | ||
- 🔥 Loader changed 👉 HDR | ||
- took 156ms | ||
|
||
🔄 Rebuilding | ||
- File changed: app/routes/products/$pid.tsx | ||
🟢 Built: assets/css | ||
🔴 Error: assets/js | ||
File: apps/routes/routes/products/$pid.tsx:36 | ||
|
||
let price = prodct.price | ||
^^^^^^ | ||
|
||
Could not find variable `prodct` | ||
|
||
⚪️ Canceled: server | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# PR 1: cleanup | ||
|
||
- [x] remove `CliError` | ||
- [x] remove `logging` module | ||
- [ ] inline `target` for server build | ||
|
||
# PR 2 | ||
|
||
--- | ||
|
||
- [ ] each esbuild error/warning on its own logline | ||
|
||
- [ ] cancelations: log cancel, ignore, log other warnings/errors? | ||
- [ ] strip `x [ERROR]` preamble | ||
- [ ] dedup esbuild warnings/errors | ||
|
||
- [ ] `future` warnings | ||
- [ ] hints for warnings and errors? | ||
- [ ] factor out "missing import" warning logic | ||
|
||
# build | ||
|
||
- [x] logger replaces console.x | ||
- [ ] error stack styling | ||
- [ ] warn/error hints? | ||
|
||
# watch | ||
|
||
- [ ] old/new dev server | ||
|
||
# follow-up | ||
|
||
concise warnings and errors with links to more info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
- [ ] https://github.com/terkelg/sisteransi | ||
- [ ] https://github.com/alexeyraspopov/picocolors | ||
- [ ] raw mode for capturing input: https://github.com/vitejs/vite/blob/a2b7a51eb09acf794b3696e448eb4839ef80a3c9/packages/vite/src/node/shortcuts.ts#L75 | ||
- [ ] https://nodejs.org/api/perf_hooks.html#performancenow | ||
- [ ] https://www.npmjs.com/package/meow | ||
|
||
# build success | ||
|
||
``` | ||
REMIX vX.Y.Z build for <production|development> | ||
W: something is weird | ||
* Building... | ||
V Built in 156ms | ||
``` | ||
|
||
# dev | ||
|
||
``` | ||
REMIX vX.Y.Z dev | ||
V assets/css | ||
x assets/js | ||
- ERROR: fileblah.js:34 | ||
- server | ||
V Rebuilt in 156ms [app/routes/hello.tsx] | ||
V assets/css | ||
V assets/js | ||
V server | ||
[app] GET /home/products 56ms | ||
> GET /home/products 56ms | ||
V Rebuilt in 84ms | ||
V Rebuilt in 156ms [3 routes changed] | ||
- assets/css [skipped] | ||
V assets/js (100ms) | ||
V server (150ms) | ||
* Rebuilding... | ||
- assets/css [skipped] | ||
V assets/js (156ms) | ||
* server | ||
* Rebuilding... | ||
V Rebuilt in 156ms | ||
1:49:24 PM [dev] hmr /src/App.tsx | ||
1:49:24 PM [dev] hdr /src/App.tsx | ||
1:49:24 PM [dev] hxr /src/App.tsx | ||
1:49:24 PM [app] GET /products/blah | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters