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

Make videojs requireable in node #3540

Closed
wants to merge 2 commits into from
Closed

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Aug 17, 2016

This is based on #3445 and makes videojs requirable in node, fixing #3536.

@ljharb the relevant commit is ad27f77

@ljharb
Copy link
Contributor

ljharb commented Aug 17, 2016

Something else to consider, is making the "main" be an empty file (or a file that exports a function), and adding the "browser" field that points to the dist file - that way, a node require pulls the main, but a browserify/webpack/bundler will grab the "browser" version.

@gkatsev gkatsev added this to the 3.12 build-improvements milestone Aug 17, 2016
@gkatsev
Copy link
Member Author

gkatsev commented Aug 17, 2016

@ljharb ah, interesting. Hadn't thought of that. Though, the changes here are fairly minimal, so, it's probably fine.

@gkatsev gkatsev added the needs: LGTM Needs one or more additional approvals label Aug 18, 2016
@brandonocasey
Copy link
Contributor

LGTM

@gkatsev gkatsev closed this in 141ecf2 Aug 22, 2016
@gkatsev gkatsev deleted the requirable branch August 22, 2016 18:21
@gkatsev gkatsev mentioned this pull request Aug 22, 2016
helenjer pushed a commit to helenjer/video.js that referenced this pull request Sep 6, 2016
@gkatsev gkatsev removed the needs: LGTM Needs one or more additional approvals label Dec 24, 2019
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.

3 participants