Closed
Description
The goal of the task is to refactor and break API responses of the AstAnalyser class by using the newly introduced flags
property (see #324).
- Remove
isOneLineRequire
from AstAnalyser.analyse method response and includeoneline-require
in flags Set. - Remove
isMinified
from AstAnalyser.analyseFile and AstAnalyser.analyseFileSync response and includeis-minified
in flags Set (previous flags from analyse must be preserved).
Note
flags property is missing in the analyseFileSync response (i forgot to add it in my previous PR). Do not hesitate to open a PR and add a test to avoid faling for the same mistake.
I would recommend opening multiple PR (do not attempt to achieve everything in one).
A bunch of tests will break and will require refactoring to use the flags
property.