@begin/enhance
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -157,7 +157,7 @@ import { existsSync } from 'fs' | ||
const templatePath = `${templates}/${tagName}.js` | ||
if (existsSync(templatePath)) { | ||
try { | ||
return require(templatePath) | ||
.default(attrs && attrsToState(attrs), render) | ||
} | ||
else { | ||
catch { | ||
console.warn(`🤷🏻♀️ Template file not found at: ${templatePath}`) | ||
@@ -164,0 +164,0 @@ } |
{ | ||
"name": "@begin/enhance", | ||
"version": "0.0.2", | ||
"description": "", | ||
"version": "0.0.3", | ||
"description": "Custom Element Server-side rendering CESR", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
12183