Custom system.js config not working for Plunker #1424
Description
Problem:
If we need to define custom barrels in our examples, we will need to extend the systemjs.config.js
(via another file or inline in the index.html
).
That won't work on Plunker because we load .js
locally and .ts
in plunker.
Solutions:
We could either offer a different index.html
for plunker (if we inline the config). That is easy to do, doesn't need changes.
We could have a systemjs.custom.js
for this new custom stuff and offer a systemjs.custom.plunker.js
that plunker would use. Downsides, we will need to write the same thing twice.
A third solution would be generating the systemjs.custom.plunker.js
on the fly by replacing the extensions at systemjs.custom.js
. It could be potentially brittle, but shouldn't give any troubles.
I have no problem in fixing this, but first I want to see your ideas or see if I am missing an obvious solution.
/cc @wardbell