Skip to content
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

expose compiler as library #206

Closed
samuelstroschein opened this issue Sep 3, 2024 — with Linear · 1 comment · Fixed by opral/monorepo#3304
Closed

expose compiler as library #206

samuelstroschein opened this issue Sep 3, 2024 — with Linear · 1 comment · Fixed by opral/monorepo#3304
Assignees
Labels

Comments

Copy link
Member

samuelstroschein commented Sep 3, 2024

Context

It's useful to have the compiler exported as library to enable various use cases.

Proposal

Expose the compiler to give three options of using Paraglide JS:

  1. a cli command
  2. a bundler plugin
  3. as library (calling compile on the fly)
@samuelstroschein samuelstroschein added the v2.0 label Sep 4, 2024 — with Linear
@tomas-correia
Copy link

Looking forward to this.

It's helpful to be able to trigger compilation in watch mode from my code when I'm already using a watch mode to watch for changes in my code and not using a bundler.

For example, I'm using TSX in watch mode to run TypeScript and watch for changes. It's not possible to trigger the Paraglide compile watch command and TSX watch mode at the same time without some conccurrent scripts package or 2 terminal windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants