Skip to content

Commit

Permalink
Ensure that module can be required in node without errors
Browse files Browse the repository at this point in the history
See #1841

>We have this library bundled and running in an isomorphic application, but on the server nothing is ever called. It just needs to be bundled safely.
  • Loading branch information
tjenkinson authored and friday committed Jul 19, 2018
1 parent 6300f72 commit 8f09e5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/travis.sh
Expand Up @@ -7,6 +7,9 @@ npm install
if [ "${TRAVIS_MODE}" = "build" ]; then
npm run lint
npm run build
# check that hls.js doesn't error if requiring in node
# see https://github.com/video-dev/hls.js/pull/1642
node -e 'require("./" + require("./package.json").main)'
elif [ "${TRAVIS_MODE}" = "unitTests" ]; then
npm run test:unit
elif [ "${TRAVIS_MODE}" = "funcTests" ]; then
Expand Down

0 comments on commit 8f09e5e

Please sign in to comment.