Output scriplet errors to console in dev build

This commit is contained in:
Raymond Hill 2023-08-08 10:29:54 -04:00
parent f8394ff2d5
commit 96d7b278b4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 3 deletions

View File

@ -196,6 +196,7 @@ const lookupScriptlet = function(rawToken, mainMap, isolatedMap) {
content, content,
'// <<<< scriptlet end', '// <<<< scriptlet end',
'} catch (e) {', '} catch (e) {',
isDevBuild ? 'console.error(e);' : '',
'}', '}',
].join('\n')); ].join('\n'));
}; };