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

Commit 3cca2b7

Browse files
committed
Fix baseURL documentation in README.md
As far as I can see the `baseURL` is trimmed until the last index of `/`. So in order to achieve the load from `/js/lib/module.js` there is a trailing slash needed. I have only tested it in the browser.
1 parent d751b21 commit 3cca2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ All modules are loaded relative to the `baseURL`, which by default is set to the
8585
We can alter this with:
8686

8787
```javascript
88-
System.baseURL = '/js/lib';
88+
System.baseURL = '/js/lib/';
8989
System.import('module'); // now loads "/js/lib/module.js"
9090
```
9191

0 commit comments

Comments
 (0)