intern-systemjs-loader
Advanced tools
Comparing version 0.0.3 to 0.0.4
13
main.js
@@ -59,2 +59,9 @@ (function () { | ||
// SystemJS erroneously thinks dojo/request/node is required by dojo/request in the browser even though it's | ||
// hidden by an if statement so the module can support both node and the browser. | ||
// Just point to our export undefined module for now. | ||
if (name.indexOf('./request/node') > -1 && parentName.indexOf('dojo/') > -1) { | ||
return '@intern-systemjs-loader:undefined'; | ||
} | ||
if (hook) { | ||
@@ -72,2 +79,8 @@ // If a direct request the module, return the one we set earlier | ||
// Handle relative modules | ||
if (/^\.{1,2}\//.test(target)) { | ||
target = parentName.split('/').slice(0, -1).concat([target]) | ||
.join('/').replace(/[^/]+\/\.\.\//, '').replace(/\.\//, ''); | ||
} | ||
return target ? normalize.call(this, target) : '@intern-systemjs-loader:undefined'; | ||
@@ -74,0 +87,0 @@ } |
{ | ||
"name": "intern-systemjs-loader", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A wrapper for using SystemJS as Intern's loader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137
7281
3
2
0