This repository was archived by the owner on Dec 4, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 877
Custom system.js config not working for Plunker #1424
Comments
Not a fan of those choices. What is wrong with inline in the index.html? |
Local uses .js and plunker .ts. |
Let me explain better now that I am not at phone. If we have a
That won't work on a plunker because we transpile "on the fly" so we need to do:
So we need a way to have different "extra config" for local and plunker. |
We can make it work on plunker very easily because we have RegEx transformers specifically for this use case. See |
Fixed by #1439 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 theindex.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 asystemjs.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 atsystemjs.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
The text was updated successfully, but these errors were encountered: