Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The default backend loader doesn't work with cli+bundler+systemjs #289
@zewa666 I need to modify this line
const response = await Backend.loader.loadText(SystemJS.normalizeSync(url));
In order to make it work on cli+bundler+systemjs, it is something related to how systemjs normalize module id with plugin subfix.
The aurelia-loader has an abstraction on normalize but I have no reference to 2nd parameter
const response = await Backend.loader.loadText( Backend.loader.normalizeSync(url, relativeTo_is_not_accessable_here) );
requirejs has no such issue.
Looks like this is not aurelia-i18n bug. An easier fix is to remove following code from aurelia-loader-default.
That code block is unnecessary, as cli+bundler provides systemjs text plugin from npm package systemjs-plugin-text.
It looks like the double definition of text plugin confused systemjs runtime.
@EisenbergEffect it looks like jspm setup does not need that inline text plugin either.