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.

Expose watch api in the js library

See original GitHub issue

Right now the js library exposes render and renderSync api.

it would be useful to have a “watch” api exposed as well.

There are a bunch of api available in watch.dart but not in a way directly consumable by the js api.

It would be useful to expose the same.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nex3commented, Feb 11, 2020

We’ve typically treated node-sass as developer CLI as opposed to a bare Sass compiler like LibSass. As a result we’ve baked in developer productivity features like watching and incremental compilation.

What APIs does Node Sass expose for incremental compilation? I don’t see anything about this in the README.

We use some watcher APIs to achieve incremental compilation so we prefer decorate watcher configuration than mutate or decorate a watcher instance.

WDYT about making a separate package like chokidar-sass that exposes these APIs in a cross-implementation way, rather than requiring each implementation to re-implement them?

0reactions
nex3commented, Nov 16, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Streams API - MDN Web Docs - Mozilla
The Streams API allows JavaScript to programmatically access streams of data received over the network and process them as desired by the ...
Read more >
How to build a REST API with Node js & Express - YouTube
Learn to build a REST API with Node js & Express in just 1 hour! Get the complete Node course: http://bit.ly/2NfkpOCSubscribe for...
Read more >
Create A REST API With JSON Server | by Sebastian - Medium
Now the exposed REST API gives you access to all 50 employee data sets created with Faker.js. Video Tutorial. This video tutorial contains...
Read more >
API - esbuild
esbuild app.js --outfile=out.js --bundle --watch[watch] build finished, ... esbuild's incremental build API and a file watcher library of your choice if you ...
Read more >
Node.js v19.3.0 Documentation
JavaScript embedder API#. Library developers that handle their own asynchronous resources performing tasks like I/O, connection pooling, or managing callback ...
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