@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.esm.js
CHANGED
|
@@ -3063,12 +3063,9 @@ class Compiler {
|
|
|
3063
3063
|
},
|
|
3064
3064
|
function devOnlyStrip() {
|
|
3065
3065
|
let isDev = true;
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
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();
|