es6-dev-server
Advanced tools
Comparing version 0.0.9 to 0.0.10
11
index.js
@@ -181,6 +181,7 @@ // ES6 DEV SERVER | ||
/* Note: if resolveImports() fails, the server will return error 500. */ | ||
const { resolvedCode, error } = this.resolveImports(moduleFilePath, code) | ||
let { resolvedCode, error } = this.resolveImports(moduleFilePath, code) | ||
if (error) { | ||
this.send(req, res, 500, error) | ||
return true | ||
// this.send(req, res, 500, error) | ||
// return true | ||
resolvedCode = code | ||
} | ||
@@ -239,2 +240,3 @@ | ||
const { error, path } = this.resolveModuleLikeNode(moduleFilePath, orig) | ||
if (error) return { error } | ||
@@ -250,2 +252,5 @@ patches.push({ | ||
ImportDeclaration: patchSrc, | ||
ExportAllDeclaration: patchSrc, | ||
ExportDefaultDeclaration: patchSrc, | ||
ExportNamedDeclaration: patchSrc, | ||
ImportExpression: node => { | ||
@@ -252,0 +257,0 @@ if (node.source.type === 'Literal') { |
{ | ||
"name": "es6-dev-server", | ||
"description": "Serve ES6 modules ensuring node resolution via the node algorithm. Express middleware and full server", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "es6-dev-server": "./server" |
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
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
54202
341