@motifx/compiler 1.0.1 → 1.1.0

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/index.cjs CHANGED
@@ -3090,12 +3090,9 @@ class Compiler {
3090
3090
  },
3091
3091
  function devOnlyStrip() {
3092
3092
  let isDev = true;
3093
- try {
3094
- const flag = (0, eval)('typeof __MOTIF_DEV__ !== "undefined" ? __MOTIF_DEV__ : undefined');
3095
- if (typeof flag === 'boolean')
3096
- isDev = flag;
3097
- }
3098
- catch { /* ignore */ }
3093
+ const flag = globalThis.__MOTIF_DEV__;
3094
+ if (typeof flag === 'boolean')
3095
+ isDev = flag;
3099
3096
  if (typeof process !== 'undefined' && process?.env?.MOTIF_DEV === 'false')
3100
3097
  isDev = false;
3101
3098
  const consumed = new WeakSet();