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 bea9514 commit 567f74eCopy full SHA for 567f74e
src/loader.js
@@ -182,8 +182,11 @@ export function pitch(request) {
182
}
183
184
let resultSource = `// extracted by ${pluginName}`;
185
+ const json = JSON.stringify(locals);
186
+ const stringified = JSON.stringify(json);
187
+
188
const result = locals
- ? `\nmodule.exports = ${JSON.stringify(locals)};`
189
+ ? `\nmodule.exports = JSON.parse(${stringified});`
190
: '';
191
192
resultSource += options.hot
0 commit comments