Closed jean-michelet closed 9 months ago
EDIT: After exchanges with @fraxken, we need to check the LogicalExpression (left, right) and ConditionalExpression (consequent, alternate).
ConditionalExpression
This pull request addresses issue #168.
I added an AST check to ensure that files containing only one line and composed of a LogicalExpression assignation, typically an export: module.exports = require('fs') || require('constants'), are considered as not minified.
LogicalExpression
module.exports = require('fs') || require('constants')
EDIT: After exchanges with @fraxken, we need to check the LogicalExpression (left, right) and
ConditionalExpression
(consequent, alternate).This pull request addresses issue #168.
I added an AST check to ensure that files containing only one line and composed of a
LogicalExpression
assignation, typically an export:module.exports = require('fs') || require('constants')
, are considered as not minified.