You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
zhazhaxia
changed the title
![image](https://user-images.githubusercontent.com/9816225/75414496-b4500980-5963-11ea-899e-067d7ec831d6.png)
The compatible path on windows system.
Feb 27, 2020
Originally posted by @liximomo in #10 (comment)
Webpack use
eval
to exceute your template code.So the result maybe for the following code.
This exception caught on browser because of the eval function that webpack use.
The text was updated successfully, but these errors were encountered: