Skip to content

Commit

Permalink
Don't modify script nodes with text/html type (#1924)
Browse files Browse the repository at this point in the history
Knockout.js uses <script type="text/html> for named templates. Currently, the type attribute is stripped by parcel. This change prevents that from happening.
  • Loading branch information
southpolesteve authored and devongovett committed Sep 22, 2018
1 parent 5b4801e commit b058d92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/parcel/src/assets/HTMLAsset.js
Expand Up @@ -64,7 +64,8 @@ const META = {
const SCRIPT_TYPES = {
'application/javascript': 'js',
'text/javascript': 'js',
'application/json': false
'application/json': false,
'text/html': false
};

// Options to be passed to `addURLDependency` for certain tags + attributes
Expand Down

0 comments on commit b058d92

Please sign in to comment.