mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
fix: runtime mismatch check
This commit is contained in:
parent
efb26bb975
commit
892f9d0f10
@ -65,10 +65,15 @@ function createRendererFunc(
|
||||
|
||||
var shouldApplySplitMixins = renderingLogic && isSplit;
|
||||
|
||||
if (!"MARKO_DEBUG" !== !componentProps.d) {
|
||||
throw new Error(
|
||||
"Component was compiled in a different NODE_ENV than the Marko runtime is using."
|
||||
);
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
if ("MARKO_DEBUG") {
|
||||
if (!componentProps.d) {
|
||||
throw new Error(
|
||||
"Component was compiled in a different NODE_ENV than the Marko runtime is using."
|
||||
);
|
||||
}
|
||||
} else if (componentProps.d) {
|
||||
throw new Error("Runtime/NODE_ENV Mismatch");
|
||||
}
|
||||
|
||||
return function renderer(input, out) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user