question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to use this with watch mode?

See original GitHub issue

I’ve tried setting watch: true and passing a -watch flag, neither seem to work.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
piglovesyoucommented, May 18, 2021

Thanks a lot again. I think you’re right, mostly.

In short, webpack HMR detects file change of the ./viewer.graphql on our behalf. It’s a tested scenario. Also, babel --watch detects your *.tsx change, which emits our plugin or macro to regenerate too.

A single process detecting file changes is enough. You don’t want to run both webpack serve and graphql-let --watch, do you. So currently, I think webpack serve is enough, or moreover, it should do all.

1reaction
piglovesyoucommented, May 31, 2021

No problem at all. Thank you for taking your time to try it out.

Let’s keep this open. I came up with scenarios wanting watch mode.

  1. If you don’t use Babel nor webpack, they’ll want it, especially in the case as described in https://github.com/piglovesyou/graphql-let/issues/479.
  2. If you use Babel and load() macro, *.graphql doesn’t emit Babel file change detection since Babel only watches *.ts(x). Please let me know the solution if you have.

I appreciate it if you give me a --watch PR to solve them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using watch mode - Rush.js
Using watch mode. Popular tools like Webpack and Jest provide a "watch mode" feature: After the task is completed, the tool enters a...
Read more >
Watch and WatchOptions | webpack
Webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can...
Read more >
Use Express Mode with transit cards, passes, and keys in ...
In the My Watch tab, tap Wallet & Apple Pay. Then tap Express Transit Card, select a transit or payment card, and authenticate...
Read more >
Webpack add watch mode without compiling - Stack Overflow
When running webpack watch mode, it is not possible to run these scripts in sequence, as watch mode will block the second script...
Read more >
[MVP] Watch mode · Issue #21 · evanw/esbuild - GitHub
Note that it is still possible to implement watch mode yourself using esbuild's incremental build API and a file watcher library of your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found