mithril-render-loader
Advanced tools
Comparing version 0.8.0 to 0.9.0
18
index.js
@@ -40,3 +40,3 @@ /* eslint no-invalid-this: 0 */ | ||
if (o.model === null) { | ||
this.emitWarning("property 'model' is not for mithril-render"); | ||
this.emitWarning("property 'model' is not set for mithril-render"); | ||
o.model = {}; | ||
@@ -64,2 +64,3 @@ } | ||
} | ||
// module.exports = __webpack_public_path__ + "intro-mobile-f825065fb480b357.jpg"; | ||
@@ -70,3 +71,4 @@ source = source.replace(/^module\.exports[^"]*/, ""); | ||
} | ||
console.log("RESOLVED", source); | ||
// console.log("RESOLVED", source); | ||
return resolve({ id, source }); | ||
@@ -86,6 +88,14 @@ }); | ||
delete require.cache[this.resourcePath]; | ||
const view = require(this.resourcePath); | ||
let view; | ||
let timeResolve; | ||
// require the entry file, catching nodejs syntax errors | ||
try { | ||
view = require(this.resourcePath); | ||
} catch (e) { | ||
// abort, passing error message to webpack); | ||
this.addDependency(this.resourcePath); | ||
delete require.cache[this.resourcePath]; | ||
return done(e); | ||
} | ||
// gather renderer options | ||
@@ -92,0 +102,0 @@ const renderOptions = { strict: o.strict }; |
{ | ||
"name": "mithril-render-loader", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "", | ||
@@ -27,4 +27,4 @@ "main": "index.js", | ||
"webpack": "^3.8.1", | ||
"webpack-dev-server": "^2.9.3" | ||
"webpack-dev-server": "^2.11.1" | ||
} | ||
} |
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
26753
289