Skip to content

Conversation

aellerton
Copy link

Certain modules do not exist in a browser environment, e.g. cluster, file/os/path, etc.

In that environment, file-based appenders are effectively disabled by this commit, without modifying the source directly.

The clustering.js file is still required, but this commit essentially makes it a no-op, again without modifying the source directly.

This addresses #968 and supersedes PR 1023 #1023

@aellerton aellerton force-pushed the master branch 2 times, most recently from fa3794d to 6cc56e2 Compare March 7, 2023 06:12
@lamweili
Copy link
Contributor

lamweili commented Mar 7, 2023

Now you are missing some tests for the test coverage and you should be good to go!
May want to use /* istanbul ignore file */ if it doesn't fit in nicely.

@lamweili lamweili added this to the 6.8.1 milestone Mar 7, 2023
Certain modules do not exist in a browser environment.
In that environment, file-based appenders are effectively
disabled by this commit, without modifying the source directly.
@aellerton
Copy link
Author

Thank you!

@lamweili lamweili modified the milestone: 6.9.0 Mar 7, 2023
@lamweili
Copy link
Contributor

lamweili commented Mar 7, 2023

Thank you!

I should thank you instead! 🤗

@aellerton aellerton changed the title feat: support for idempotent logging on browser feat: support for ismorphic logging on browser Mar 9, 2023
@aellerton aellerton changed the title feat: support for ismorphic logging on browser feat: support for isomorphic logging on browser Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants