Closed panicbit closed 9 years ago
@guybedford Using jspm 0.16.1
, System.normalize('jade-compiler/lib/runtime', module.id );
now returns undefined
.
Even System.normalize('jade-compiler', module.id );
returns undefined
.
require('jade-compiler')
works.
Also fails under 0.16.0.
@johnsoftek this is actually the SystemJS CJS require detection breaking down on file:///
URLs as it thinks its a comment in the require statement. I've just added a fix for this in SystemJS at https://github.com/systemjs/systemjs/commit/4717d582801fc3e9f10727c98489fa1ffeea2cc5 which makes this work again. Patch should come today or tomorrow.
@guybedford Thanks. I'll test when the patch is ready.
Sent from my phone On 26 Aug 2015 1:21 am, "Guy Bedford" notifications@github.com wrote:
@johnsoftek https://github.com/johnsoftek this is actually the SystemJS CJS require detection breaking down on file:/// URLs as it thinks its a comment in the require statement. I've just added a fix for this in SystemJS at systemjs/systemjs@4717d58 https://github.com/systemjs/systemjs/commit/4717d582801fc3e9f10727c98489fa1ffeea2cc5 which makes this work again. Patch should come today or tomorrow.
— Reply to this email directly or view it on GitHub https://github.com/johnsoftek/plugin-jade/issues/9#issuecomment-134621633 .
I've posted the SystemJS update. This should now work if you update jspm.
@guybedford Awesome, it works!
Since
jspm 0.16.1
bundles includingjade
templates seem to be broken. Using such a bundle results in:The generated bundle looks like this:
Note the
require("undefined")
.[Ref: jspm/jspm-cli#1047]