@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.esm.js CHANGED
@@ -3063,12 +3063,9 @@ class Compiler {
3063
3063
  },
3064
3064
  function devOnlyStrip() {
3065
3065
  let isDev = true;
3066
- try {
3067
- const flag = (0, eval)('typeof __MOTIF_DEV__ !== "undefined" ? __MOTIF_DEV__ : undefined');
3068
- if (typeof flag === 'boolean')
3069
- isDev = flag;
3070
- }
3071
- catch { /* ignore */ }
3066
+ const flag = globalThis.__MOTIF_DEV__;
3067
+ if (typeof flag === 'boolean')
3068
+ isDev = flag;
3072
3069
  if (typeof process !== 'undefined' && process?.env?.MOTIF_DEV === 'false')
3073
3070
  isDev = false;
3074
3071
  const consumed = new WeakSet();