Skip to content

Commit

Permalink
Merge pull request #1809 from fatso83/esm-module
Browse files Browse the repository at this point in the history
Export Sinon as an ES module that can be consumed by newer browsers directly in <script type=module /> without needing (additional) transpilation.
  • Loading branch information
fatso83 committed May 29, 2018
2 parents e641e58 + 89dba09 commit 9d30dcf
Show file tree
Hide file tree
Showing 7 changed files with 681 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Expand Up @@ -5,3 +5,6 @@ docs/_site/
docs/js/
docs/releases/
docs/assets/js/

# has "invalid" ESM syntax
rollup.config.js
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -28,9 +28,9 @@ before_script:
# these build targets only need to run once per build, so let's conserve a few resources
# ESLint only supports Node >=4
- if [ "x$TRAVIS_NODE_VERSION" = "x10" ]; then npm run lint; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x10" ]; then npm run lint-markdown; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x10" ]; then npm run test-headless -- --allow-chrome-as-root; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x10" ]; then npm run test-webworker -- --allow-chrome-as-root; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x10" ]; then npm run test-esm-bundle -- --allow-chrome-as-root; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x10" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test-cloud; fi

script:
Expand Down

0 comments on commit 9d30dcf

Please sign in to comment.