We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3514e0 commit 1b6bb85Copy full SHA for 1b6bb85
lib/JsonParser.js
@@ -13,7 +13,7 @@ class JsonParser {
13
}
14
15
parse(source, state) {
16
- const data = parseJson(source.replace(/^\ufeff/, ""));
+ const data = parseJson(source[0] === "\ufeff" ? source.slice(1) : source);
17
state.module.buildInfo.jsonData = data;
18
state.module.buildMeta.exportsType = "named";
19
if (typeof data === "object" && data)
0 commit comments