-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(compiler): officially support Deno #3117
Conversation
8c59fae
to
98d8696
Compare
5e84dc1
to
7d0425b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! 🔥
We'll probably also need magicExports
, like we have for cloudflare
& node
runtimes?
We don't need nor want magic exports for Deno since we don't have to support existing Deno projects that |
This would break our "just copy over your |
We can't promise that. E.g. if someone writes |
Good point on that one. If I recall correctly, thie "advice" @mjackson used to give for changing adapter/runtime has always been "create a new project with the required adapter/runtime & copy over your |
442d954
to
d467eb5
Compare
docs/decisions/0001-use-npm-to-manage-npm-dependencies-for-deno-projects.md
Outdated
Show resolved
Hide resolved
keep url imports as-is in build output so that each runtime can handle url imports in their own way. for example, deno will download dependencies from url imports at runtime. the browser will download dependendencies from url imports on-demand. node will simply throw an error when encountering a url import. since we will recommend to use npm/node_modules for dependency management (even for deno), the only url imports we expect are for deno imports on the server from https://deno.land or from Deno-friendly CDNs like https://esm.sh .
previously, `shell.grep` was being called with the `-r` option, which it does not recognize, resulting in an exit ode of 1. we incorrectly interpreted that as `grep` finishing the search without finding matches. instead, the `shell.grep` call was crashing. now we correctly pass a list of files to `shell.grep` without the `-r` option.
…ot found so that `createRequestHandlerWithStaticFiles` is more portable across runtimes and adapters
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Docs
I will update
docs/
with mentions to@remix-run/deno
as a follow-up PR targeting themain
branch since there are changes there that we want to add to.Testing Strategy
Integration test:
deno-compiler-test.ts
Manually testing
Have to jump through a few hoops to get the locally built packages all plumbed through...
remix-run/remix
:@remix-run/deno
locally:cd build/node_modules/@remix-run/deno npm pack
npm install
:@remix-run/deno
: