kolodny/jsan

Unexpected `eval` added by Webpack

Closed this issue · 3 comments

Weirdly, after bundling the code through webpack (tried both 1 and 2 without any plugins), this line:

value[i] = utils.restore(item.$jsan, $);

becomes

value[i] = eval(path);

As I see, there's nothing leading to eval in utils.restore.

@kolodny any ideas how it can appear?

Huh, I seem to get the following https://gist.github.com/kolodny/60641601b679bc3e3d8afb980240f3f5

cd /tmp
git clone https://github.com/kolodny/jsan/
npm i webpack
./node_modules/.bin/webpack index.js output.js

I'm sorry for the wrong issue! It's from cycle.js. I was confused that it was the only difference in this part of code :-/

I'll try to convince guys from socketcluster to use jsan instead.

No worries. It looked like jsan to me too. Both projects are forked off the same repo.