mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
bundle paths config example
This commit is contained in:
parent
4d7ad517da
commit
3937d4db4a
@ -347,8 +347,13 @@ Then include `traceur-runtime.js` (this is found inside traceur's `bin` folder w
|
||||
```html
|
||||
<script src="traceur-runtime.js"></script>
|
||||
<script src="system.js"></script>
|
||||
<script>
|
||||
System.paths['app/*'] = 'app-built/*';
|
||||
</script>
|
||||
```
|
||||
|
||||
We can then use map or paths config to ensure that `app/main` gets directed to the new folder. Alternatively rename `app-built` to replace `app`.
|
||||
|
||||
Now the application will continue to behave identically without needing to compile ES6 in the browser.
|
||||
|
||||
### Compiling ES6 to ES5 and AMD
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user