compile into source code instead of node modules #1607
Labels
scope: inlang/paraglide-js
Related to source-code/sdk-js.
type: improvement
Something that can be improved.
type: refactor
Code being refactored to improved performance or long-term maintainability.
Discussed in #1579
Originally posted by samuelstroschein November 2, 2023
Vote with 👍 or 👎
Problem
The majority/all JS tooling default assumes that code in
node_modules
is static. Paraglide's compilation into node_modules breaks that assumption, leading to bugs that are fixed with workarounds.Proposal
Don't compile into node_modules. Instead, compile into the source code itself with a git ignore.
Pros
Neutral
@inlang/paraglide-js/{name}/messages
; imports will differ per user (but it's just normal JS after all!))Cons
CleanShot.2023-11-02.at.16.37.28.mp4
The text was updated successfully, but these errors were encountered: