YML support for Defining 'type' attributes in 'script' elements

custom javascript is added through twig {{attach_library()}} tags, and libraries containing ‘.js’ files are defined inside of THEME.libraries.yml settings files, so it seems that the YML file would be the best place to define attributes for a script tag, most specifically,
<SCRIPT type= “text/javascript”></SCRIPT> ‘ attributes

is there support within the YML files for defining the ‘type’ attribute?
  If not, can it be called within the attach_library() twig call?

Pantheon returns this script error when instances are in ‘GIT’ mode exclusively

Refused to execute script from ‘http://example.com/themes/MYTHEME/js/contrib/SOMESCRIPT.js?v=4.2‘ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

I did find that enabled “CSS and Javascript” aggregation within the configuration performances tab resolves the issue.

Drupal version: 

Source: https://www.drupal.org/taxonomy/term/4/feed