Open
Description
Originally posted by @liximomo in #10 (comment)
Webpack use eval
to exceute your template code.
So the result maybe for the following code.
const p = path.win32.join('e:','a.js'); // e:\\a.js
const template = `var api = '${p}'`; // var api = \'e\\a.js\'
// use eval excute template on browser
eval(template);
console.log(api) // e:a.js
This exception caught on browser because of the eval function that webpack use.
Metadata
Metadata
Assignees
Labels
No labels