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

Branches the code between browser and node #120

Merged
merged 4 commits into from
Feb 25, 2022
Merged

Conversation

arcanis
Copy link
Owner

@arcanis arcanis commented Feb 25, 2022

The code currently references a few Node builtins that don't make sense within browser contexts. I'd like to be sure that Clipanion can be easily compiled via browsers (I myself use it inside a Chrome extension), so those builtins get in the way.

This diff gates the builtins in a platform folder with a package.json configured to return one file or the other depending on the environment.

@arcanis arcanis marked this pull request as draft February 25, 2022 11:24
@arcanis arcanis marked this pull request as ready for review February 25, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant