@lightningjs/solid
Advanced tools
Comparing version 0.8.5 to 0.8.6
@@ -139,2 +139,6 @@ import { createSignal, createEffect, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack } from 'solid-js'; | ||
import.meta.env = import.meta.env || { | ||
MODE: 'development' | ||
}; | ||
const isDev = import.meta.env.MODE === 'development'; | ||
const config = { | ||
@@ -170,3 +174,2 @@ debug: false, | ||
const isDev = import.meta.env.MODE === 'development'; | ||
function log(msg, node, ...args) { | ||
@@ -1356,3 +1359,3 @@ if (isDev) { | ||
const loadInspector = import.meta.env.MODE === 'development'; | ||
const loadInspector = isDev; | ||
if (loadInspector) { | ||
@@ -1359,0 +1362,0 @@ attachInspector(); |
@@ -19,2 +19,4 @@ /* | ||
*/ | ||
import.meta.env = import.meta.env || { MODE: 'development' }; | ||
export const isDev = import.meta.env.MODE === 'development'; | ||
export const config = { | ||
@@ -21,0 +23,0 @@ debug: false, |
@@ -21,3 +21,4 @@ /* eslint-disable @typescript-eslint/unbound-method */ | ||
import universalInspector, { attachInspector, } from './universal/dom-inspector.js'; | ||
const loadInspector = import.meta.env.MODE === 'development'; | ||
import { isDev } from '../config.js'; | ||
const loadInspector = isDev; | ||
if (loadInspector) { | ||
@@ -24,0 +25,0 @@ attachInspector(); |
@@ -18,4 +18,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
*/ | ||
import { config } from '../config.js'; | ||
const isDev = import.meta.env.MODE === 'development'; | ||
import { config, isDev } from '../config.js'; | ||
export function log(msg, node, ...args) { | ||
@@ -22,0 +21,0 @@ if (isDev) { |
@@ -10,3 +10,4 @@ import type { AnimationSettings } from '@lightningjs/renderer'; | ||
} | ||
export declare const isDev: boolean; | ||
export declare const config: Config; | ||
export {}; |
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -31,2 +31,5 @@ /* | ||
import.meta.env = import.meta.env || { MODE: 'development' }; | ||
export const isDev = import.meta.env.MODE === 'development'; | ||
export const config: Config = { | ||
@@ -33,0 +36,0 @@ debug: false, |
@@ -26,4 +26,5 @@ /* eslint-disable @typescript-eslint/unbound-method */ | ||
import type { JSX } from 'solid-js'; | ||
import { isDev } from '../config.js'; | ||
const loadInspector = import.meta.env.MODE === 'development'; | ||
const loadInspector = isDev; | ||
if (loadInspector) { | ||
@@ -30,0 +31,0 @@ attachInspector(); |
@@ -19,7 +19,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import { config } from '../config.js'; | ||
import { config, isDev } from '../config.js'; | ||
import type { AnimatableNumberProp } from '../index.js'; | ||
import type { SolidNode } from './node/index.js'; | ||
const isDev = import.meta.env.MODE === 'development'; | ||
export function log(msg: string, node: SolidNode, ...args: any[]) { | ||
@@ -26,0 +25,0 @@ if (isDev) { |
Sorry, the diff of this file is not supported yet
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
286112
4469