These are chat archives for systemjs/systemjs

22nd
Sep 2016
Joe Edelman
@jxe
Sep 22 2016 10:18
Hi folks! I have some docco-generated documentation and I want to make the syntax-highlighted blocks runnable, and I want import statements inside them to work, relative to the location of the documentation file. I'm wondering if anyone has a way to do something like System.eval("code that goes through the transpiler, etc")? I would rather not make each code block it's own .set()'d module, in part because I want to capture their output.
Guy Bedford
@guybedford
Sep 22 2016 16:37
@jxe you can run System.define(System.normalizeSync('name'), sourceText) for this