163 Commits

Author SHA1 Message Date
陈杨文
16818a266d
add import assertions to system-register.md (#2436) 2022-10-06 08:34:37 -07:00
陈杨文
1e410396a4
feat: expose addImportMap (#2429) 2022-09-27 07:05:05 -07:00
Joel Denning
e586338aae
Call fetch hook when retrieving external import maps. Resolves #2374. (#2376)
* Call fetch hook when retrieving external import maps. Resolves #2374.

* Semicolon

* Fix build
2022-01-21 15:45:38 -07:00
legarsjules
515ffdfb4e
Add the possibility to use an async createScript hook (#2362)
* Add the possibility to use an async createScript hook

* transform async function to Promise

* Update docs/hooks.md

* Update src/features/script-load.js

Co-authored-by: Julien Bernard <julien.bernard@s4m.io>
Co-authored-by: Joel Denning <joeldenning@gmail.com>
2021-10-18 16:31:45 -06:00
Joel Denning
6a5a62002e
Fixes for named-register extra. (#2352) 2021-08-17 10:06:33 -06:00
Joel Denning
91a299172e Error documentation cleanup 2021-06-07 10:35:26 -06:00
Joel Denning
a4f64c939c
Refactor amd.js to only call System.register. Resolves #2331. (#2335)
* Refactor amd.js to only call System.register. Resolves #2331.

* Semicolons

* Curly braces

* Add new error/warning
2021-06-07 10:34:42 -06:00
kykwak
f34cdc6382
Onerror Callback Support for Errors Fetching External Import Map (#2324) 2021-04-28 20:31:39 +02:00
Joel Denning
48351aa83c
System.firstGlobalProp to use first global. Resolves #2272. (#2280) 2020-11-25 18:55:57 -08:00
Michael Geers
9edebd1969
Better import map error handling (#2267) (#2275) 2020-11-25 18:55:23 -08:00
Guy Bedford
e288dc0a80
Readme updates (#2260) 2020-10-09 13:21:54 -07:00
Guy Bedford
281fdf0653
refactor module types as a fetch hook (#2258) 2020-10-09 07:51:10 -07:00
Guy Bedford
5f7571a76b
extra deprecations (#2257) 2020-10-09 07:28:55 -07:00
Guy Bedford
66c67f80ec
Document latest features (#2233) 2020-08-10 13:08:23 -07:00
Jamespp
b6be7a367e
Fix onload (#2204) 2020-07-21 08:24:51 -07:00
Guy Bedford
c977894618
Use correct error number for #8 (#2182) 2020-04-23 20:26:53 -07:00
Joel Denning
cf9c4e5e70
Updating error code docs (#2179) 2020-04-15 12:51:22 -06:00
Joel Denning
9828b69e54
Update error code 4 content-types docs (#2177) 2020-04-15 11:54:19 -06:00
Joel Denning
0b007715a6
Switching to node-fetch to avoid caching bugs in make-fetch-happen (#2171)
* Workaround from caching problem within make-fetch-happen for 304s.

* Switching to node-fetch

* Docs

* Fixing race conditino in build
2020-04-13 10:56:14 -06:00
Joel Denning
e981b02bca
Fix error code mixup (#2169)
* Fix error code mixup

* Feedback
2020-04-09 15:01:04 -06:00
Joel Denning
8c33b6bd1b
Documentation for 6.3.0 with system-node.cjs (#2164)
* Updating documentation for SystemJS@6.3.0.

* Self review

* Self review
2020-04-09 09:57:18 -06:00
Joel Denning
109af162d9
Add warning for calling System.set with non-URL id. (#2161)
* Add warning for calling System.set with non-URL id.

* Fixing package.json

* Self review

* Splitting warnings from errors.

* Self review

* Fix tests

* Guy's feedback

* Fixing test
2020-04-08 16:56:19 -06:00
Joel Denning
243c0990ba
Switching to error codes and documentation pages (#2151)
* Beginnings of error codes

* Self review

* Merging master

* Undoing changes to dist

* Self review

* Self review

* Self review

* Self review

* Self review

* Self review

* Guy's feedback

* Guy's feedback

* Adding more documentation for error codes

* Self review

* Self review

* Last error codes

* Guy's feedback

* Self review

* Feedback

* Last feedback

* Self review

* Self review

* Feedback
2020-04-06 15:09:35 -06:00
Joel Denning
cc114f54b0
Adding note about multiple import maps support. Resolves #2095. (#2146)
* Adding note about multiple import maps support. Resolves #2095.

* Self review
2020-03-15 10:56:35 -06:00
Guy Bedford
f1e5ec58fa
createScript / fetch / shouldFetch hooks (#2058)
* createScript hook

* fetch, shouldFetch

Co-authored-by: Joel Denning <joeldenning@gmail.com>
2020-01-31 13:55:34 -07:00
Joel Denning
43974045bb
Improving docs for System.set (#2106)
* Improving docs for System.set

* Self review

* Self review
2020-01-16 22:47:45 -07:00
Joel Denning
973f07c70b
Add documentation for instantiate hook (#2094)
* Add documentation for instantiate hook

* Update hooks.md
2020-01-10 12:55:25 -07:00
Joel Denning
45ba380868
Update api.md 2020-01-10 11:29:00 -07:00
Guy Bedford
00044e176e
note registry API 2019-10-31 15:42:39 -04:00
csr632
762f46db81 Fix typo (#2061) 2019-10-27 10:31:58 -06:00
Joel Denning
16b53fbe21 Docs: synchronus resolve (#2050) 2019-10-12 19:52:06 -04:00
Guy Bedford
e6bd2d3e15
Cascading import maps implementation (#2009) 2019-08-29 14:45:48 -04:00
Guy Bedford
36854be097
Module Types Extra (#2006) 2019-08-27 13:54:05 -04:00
Guy Bedford
79cb488ec6
include file extension notes with table (#2004) 2019-08-25 16:06:56 -04:00
Guy Bedford
08bd0c9d6c
Update module type docs (#2003) 2019-08-25 15:45:27 -04:00
Joel Denning
df3ac1955b Implement loading of CSS Modules. Resolves #1991. (#1997) 2019-08-25 12:57:46 -04:00
Guy Bedford
c0226a86b5
Add deps argument to onload hook (#1998) 2019-08-25 12:57:00 -04:00
Joel Denning
3b62497acd Changing System.resolve to be synchronous. Resolves #1985. (#1996) 2019-08-25 11:53:47 -04:00
kouts
63c5a28946 Remove unneeded parentheses (#1930)
Removed unneeded parentheses from ```System.entries``` example, in order to work as expected.
2019-04-14 23:11:40 +02:00
Guy Bedford
c58c0fa820 update import maps load order docs 2019-04-07 19:20:52 +02:00
Guy Bedford
532fdbdded update iterator handling 2019-04-07 19:17:38 +02:00
Joel Denning
984dcd1c0f Making the registry iterable. See #1918. (#1919) 2019-04-07 19:07:28 +02:00
kouts
b2c2a050aa Fixed typo (#1923)
Fixed typo
2019-04-07 15:30:56 +02:00
Guy Bedford
a5d62bec59 update scopes examples to use trailing slash 2019-03-25 00:22:28 +02:00
Anthony Frehner
bf517360c0 system.has docs update (#1908)
System.has docs still showed the incorrect call, probably copied over from System.get.
2019-03-17 15:41:35 +02:00
Guy Bedford
6b85a8c472 support System.has and System.set 2019-02-03 20:39:58 +02:00
Isidro Torregrosa Torralba
a9bbd40e23 Change remaining references to the old spec (#1894)
* Change remaining references to the old spec

* Rephrase import folders

* Update import-maps.md
2019-01-13 11:49:12 +02:00
Guy Bedford
bbb3973132 update import maps documentation 2019-01-12 17:14:14 +02:00
Guy Bedford
c999674ca0 update transform links 2018-08-30 17:06:50 +02:00
Guy Bedford
6daca00a08 pad out docs 2018-08-30 16:45:52 +02:00