@netlify/zip-it-and-ship-it 9.26.2 → 9.26.3

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.
@@ -176,6 +176,11 @@ const parsePrimitive = (exp) => {
176
176
  if (exp.type === 'NullLiteral') {
177
177
  return null;
178
178
  }
179
+ // special case: minifiers like to transform `true` to `!0` and `false` to `!1`.
180
+ // because this can be hard to turn off for some frameworks, we have a special case.
181
+ if (exp.type === 'UnaryExpression' && exp.operator === '!' && exp.argument.type === 'NumericLiteral') {
182
+ return !exp.argument.value;
183
+ }
179
184
  };
180
185
  /**
181
186
  * Tries to resolve the export with a given name from a binding (variable).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/zip-it-and-ship-it",
3
- "version": "9.26.2",
3
+ "version": "9.26.3",
4
4
  "description": "Zip it and ship it",
5
5
  "main": "./dist/main.js",
6
6
  "type": "module",