Skip to content

Commit

Permalink
Removed utf8 encoding (#1676)
Browse files Browse the repository at this point in the history
The utf8 encoding breaks images from loading. Only noticed because I've built a small image editor and needed to load the image into canvas. Using this plugin broke some of my tests. Removing it fixes the issue and doesn't appear to have any negative effects.

More details here modernweb-dev/web#980
  • Loading branch information
crisward authored Nov 23, 2020
1 parent 4390946 commit 383419a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/web-test-runner-plugin/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To Resolve:
return;
}
const reqPath = request.path;
const result = await server.loadUrl(reqPath, {isSSR: false, encoding: 'utf8'});
const result = await server.loadUrl(reqPath, {isSSR: false});
return {body: result.contents, type: result.contentType};
},
transformImport({source}) {
Expand Down

0 comments on commit 383419a

Please sign in to comment.