lilact 0.26.14 → 0.26.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lilact.development.js +2 -1
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +20 -20
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +20 -20
- package/docs/functions/errors.globalErrorHandler.html +1 -1
- package/docs/static/lilact.development.js +2 -1
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +20 -20
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +20 -20
- package/examples/lilact.development.js +2 -1
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +20 -20
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +20 -20
- package/package.json +1 -1
- package/scripts/esbuild-preprocessor-plugin.cjs +1 -0
- package/src/errors.jsx +6 -2
- package/src/jsx.js +3 -1
|
@@ -5,4 +5,4 @@ bundle. It is not attached in the production mode, but it is available in the
|
|
|
5
5
|
bundle and can be attached.</p>
|
|
6
6
|
<p><code>window.addEventListener('error', (e) => { Lilact.globalErrorHandler(e); });</code></p>
|
|
7
7
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">error</span>: <span class="tsd-signature-type">any</span></span><div class="tsd-comment tsd-typography"><p>The error object</p>
|
|
8
|
-
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in errors.jsx:
|
|
8
|
+
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in errors.jsx:240</li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">Lilact</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -6466,6 +6466,7 @@ function transpileJSX(jsx2, {
|
|
|
6466
6466
|
injectTraceLabels = false,
|
|
6467
6467
|
discardComments = false,
|
|
6468
6468
|
produceCJS = false,
|
|
6469
|
+
logErrors = false,
|
|
6469
6470
|
// lilact internal
|
|
6470
6471
|
blocks_info: blocks_info2 = {
|
|
6471
6472
|
labels: {},
|
|
@@ -6480,7 +6481,7 @@ function transpileJSX(jsx2, {
|
|
|
6480
6481
|
raiseError = ((eols2, msg, index2) => {
|
|
6481
6482
|
const rc = getRowCol(eols2, index2);
|
|
6482
6483
|
const er = new Error(msg);
|
|
6483
|
-
console.error(`JSXParserError: ${msg} [file ${path2} at line ${rc[0]
|
|
6484
|
+
if (logErrors) console.error(`JSXParserError: ${msg} [file ${path2} at line ${rc[0]}]`);
|
|
6484
6485
|
[er.lineNumber, er.columnNumber] = rc;
|
|
6485
6486
|
er.name = "JSXParseError";
|
|
6486
6487
|
er.fileName = path2;
|