Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ModuleLoader/es-module-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.4
Choose a base ref
...
head repository: ModuleLoader/es-module-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 9,927 additions and 3,079 deletions.
  1. +3 −0 .babelrc
  2. +6 −0 .gitignore
  3. +11 −0 .travis.yml
  4. +0 −70 Gruntfile.js
  5. +1 −1 LICENSE-MIT
  6. +184 −326 README.md
  7. +773 −0 bench/1-register-loading.js
  8. +21 −0 bench/2-url-resolution.js
  9. +47 −0 bench/runner.js
  10. +0 −32 bower.json
  11. +102 −0 core/common.js
  12. +272 −0 core/loader-polyfill.js
  13. +723 −0 core/register-loader.js
  14. +128 −0 core/resolve.js
  15. +0 −66 demo/index.html
  16. +0 −1 demo/test1.js
  17. +0 −5 demo/test2.js
  18. +0 −7 dist/es6-module-loader-sans-promises.js
  19. +0 −10 dist/es6-module-loader.js
  20. +40 −0 docs/system-register-dynamic.md
  21. +216 −0 docs/system-register.md
  22. +0 −6 lib/index.js
  23. +0 −724 lib/loader.js
  24. +0 −916 lib/promise.js
  25. +0 −272 lib/system.js
  26. +21 −23 package.json
  27. +146 −0 test/1-url-resolution.js
  28. +86 −0 test/2-loader-api.js
  29. +246 −0 test/3-register-loader.js
  30. +3 −0 test/fixtures/.babelrc
  31. +1,616 −0 test/fixtures/data.json
  32. +6 −0 test/fixtures/dynamic-modules/basic-exports.js
  33. +55 −0 test/fixtures/dynamic-modules/mixed-bundle.js
  34. +4 −0 test/fixtures/es-modules/_a.js
  35. +2 −0 test/fixtures/es-modules/_b.js
  36. +2 −0 test/fixtures/es-modules/_c.js
  37. 0 test/{loads → fixtures/es-modules}/_d.js
  38. +2 −0 test/fixtures/es-modules/_e.js
  39. +2 −0 test/fixtures/es-modules/_f.js
  40. 0 test/{loads → fixtures/es-modules}/_g.js
  41. +3 −0 test/fixtures/es-modules/_h.js
  42. +2 −0 test/fixtures/es-modules/_i.js
  43. +2 −0 test/fixtures/es-modules/a.js
  44. 0 test/{loads → fixtures/es-modules}/b.js
  45. +3 −0 test/fixtures/es-modules/c.js
  46. +13 −0 test/fixtures/es-modules/circular1.js
  47. +13 −0 test/fixtures/es-modules/circular2.js
  48. +1 −0 test/fixtures/es-modules/deperror.js
  49. +1 −0 test/fixtures/es-modules/direct.js
  50. 0 test/{syntax/es6.js → fixtures/es-modules/es6-dep.js}
  51. +1 −1 test/{syntax → fixtures/es-modules}/es6-file.js
  52. +1 −0 test/fixtures/es-modules/es6-withdep.js
  53. +0 −1 test/{syntax/es6-dep.js → fixtures/es-modules/es6.js}
  54. +10 −0 test/fixtures/es-modules/even.js
  55. +3 −0 test/fixtures/es-modules/export-default.js
  56. +2 −0 test/fixtures/es-modules/export-star.js
  57. +4 −0 test/fixtures/es-modules/export-star2.js
  58. 0 test/{syntax → fixtures/es-modules}/export.js
  59. +11 −0 test/fixtures/es-modules/import.js
  60. +1 −0 test/fixtures/es-modules/load-non-existent.js
  61. +1 −0 test/fixtures/es-modules/main.js
  62. 0 test/{loader → fixtures/es-modules}/moduleName.js
  63. +1 −0 test/fixtures/es-modules/no-imports.js
  64. +5 −0 test/fixtures/es-modules/odd.js
  65. +1 −0 test/fixtures/es-modules/rebinding.js
  66. +1 −0 test/fixtures/es-modules/reexport-binding.js
  67. +1 −0 test/fixtures/es-modules/reexport1.js
  68. +2 −0 test/fixtures/es-modules/reexport2.js
  69. +3 −0 test/fixtures/es-modules/s.js
  70. +1 −0 test/fixtures/es-modules/star-dep.js
  71. 0 test/{syntax → fixtures/es-modules}/test-file.js
  72. +28 −0 test/fixtures/register-modules/_a.js
  73. +18 −0 test/fixtures/register-modules/_b.js
  74. +18 −0 test/fixtures/register-modules/_c.js
  75. +13 −0 test/fixtures/register-modules/_d.js
  76. +18 −0 test/fixtures/register-modules/_e.js
  77. +18 −0 test/fixtures/register-modules/_f.js
  78. +13 −0 test/fixtures/register-modules/_g.js
  79. +23 −0 test/fixtures/register-modules/_h.js
  80. +18 −0 test/fixtures/register-modules/_i.js
  81. +18 −0 test/fixtures/register-modules/a.js
  82. +13 −0 test/fixtures/register-modules/b.js
  83. +19 −0 test/fixtures/register-modules/c.js
  84. +38 −0 test/fixtures/register-modules/circular1.js
  85. +31 −0 test/fixtures/register-modules/circular2.js
  86. +10 −0 test/fixtures/register-modules/deperror.js
  87. +11 −0 test/fixtures/register-modules/direct.js
  88. +13 −0 test/fixtures/register-modules/es6-dep.js
  89. +24 −0 test/fixtures/register-modules/es6-file.js
  90. +13 −0 test/fixtures/register-modules/es6-withdep.js
  91. +13 −0 test/fixtures/register-modules/es6.js
  92. +24 −0 test/fixtures/register-modules/even.js
  93. +12 −0 test/fixtures/register-modules/export-default.js
  94. +21 −0 test/fixtures/register-modules/export-star.js
  95. +20 −0 test/fixtures/register-modules/export-star2.js
  96. +23 −0 test/fixtures/register-modules/export.js
  97. +28 −0 test/fixtures/register-modules/import.js
  98. +8 −0 test/fixtures/register-modules/load-non-existent.js
  99. +8 −0 test/fixtures/register-modules/main.js
  100. +13 −0 test/fixtures/register-modules/moduleName.js
  101. +13 −0 test/fixtures/register-modules/no-imports.js
  102. +17 −0 test/fixtures/register-modules/odd.js
  103. +13 −0 test/fixtures/register-modules/rebinding.js
  104. +11 −0 test/fixtures/register-modules/reexport-binding.js
  105. +16 −0 test/fixtures/register-modules/reexport1.js
  106. +16 −0 test/fixtures/register-modules/reexport2.js
  107. +24 −0 test/fixtures/register-modules/s.js
  108. +13 −0 test/fixtures/register-modules/star-dep.js
  109. +17 −0 test/fixtures/register-modules/test-file.js
  110. +107 −0 test/fixtures/system-register-loader.js
  111. +4,316 −0 test/fixtures/url-resolution-cases.json
  112. +0 −5 test/loader/amd-dep.js
  113. +0 −5 test/loader/amd.js
  114. +0 −1 test/loader/anon.js
  115. +0 −3 test/loader/async-norm.js
  116. +0 −1 test/loader/custom-folder/path.js
  117. +0 −1 test/loader/custom-path.js
  118. +0 −1 test/loader/custom.js
  119. +0 −1 test/loader/error1-parent.js
  120. +0 −1 test/loader/named.js
  121. +0 −1 test/loader/specific-path.js
  122. +0 −1 test/loader/test.js
  123. +0 −4 test/loads/_a.js
  124. +0 −2 test/loads/_b.js
  125. +0 −2 test/loads/_c.js
  126. +0 −2 test/loads/_e.js
  127. +0 −2 test/loads/_f.js
  128. +0 −3 test/loads/_h.js
  129. +0 −2 test/loads/_i.js
  130. +0 −2 test/loads/a.js
  131. +0 −3 test/loads/c.js
  132. +0 −3 test/loads/s.js
  133. +32 −0 test/runner.js
  134. +0 −1 test/syntax/direct.js
  135. +0 −2 test/syntax/es6-withdep.js
  136. +0 −13 test/syntax/import.js
  137. +0 −1 test/syntax/reexport1.js
  138. +0 −1 test/syntax/reexport2.js
  139. +0 −1 test/syntax/script.js
  140. +0 −69 test/test.html
  141. +0 −484 test/test.js
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["transform-async-to-generator"]
}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
node_modules
bower_components
tmp
coverage
.DS_Store
npm-debug.log
.lvimrc
dist
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
git:
depth: 1
language: node_js
node_js:
- '6'
- '8'
before_install:
- npm install
script:
- npm run make-test
- npm run test
70 changes: 0 additions & 70 deletions Gruntfile.js

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013 Guy Bedford, Luke Hoban, Addy Osmani
Copyright (c) 2013-2016 Guy Bedford, Peter Uithoven, Luke Hoban, Addy Osmani

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Loading