@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 +3 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +3 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3090,12 +3090,9 @@ class Compiler {
|
|
|
3090
3090
|
},
|
|
3091
3091
|
function devOnlyStrip() {
|
|
3092
3092
|
let isDev = true;
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
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();
|