Skip to content

Deno nodeModulesDir is wrong #174

@GitonioDev

Description

@GitonioDev

Hello there I experienced slow build and dev times when adding more and more dependencies this is because deno resolves packages at runtime, however deno recommends not using that feature for tools like Vite see here
image
It mentions that projects with package.json uses the manual mode by default but the deno.jsonc redefines it to auto, so overriding that behavior. Because none and auto is not recommended for Vite it's bad currently.
So in my solution and also in this template: https://github.com/redabacha/remix-deno-vite-template
Both define nodeModulesDir with manual
I will raise another issue because the server.ts is also wrong as it doesn't resolve non asset static files correctly and just passes them to the handler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions