#1156 Add isExternal property, add logic for external JS file and JS minified file