gajus / isomorphic-webpack

Abstracts universal consumption of application code base using webpack.
Other
291 stars 17 forks source link

Namespace console.log before it is passed to runCode #3

Open gajus opened 7 years ago

gajus commented 7 years ago

https://github.com/gajus/isomorphic-webpack/blob/4eb08335b1affdbbae8ae481875d10810e162543/src/utilities/runCode.js#L13

Use a namespace for all messages being logged in a VM. Otherwise, there is no way telling whether the logs are coming from the main code or the VM code.