Re:Designing very large JavaScript applications
by z3t4 on Saturday April 21, 2018 @06:17AM
(#16890821)
No need to make sense of the code, just run a regex to find all require's.
Could also use a package.json
[ Parent
| on HN ]
Re:Designing very large JavaScript applications
by tzahola on Saturday April 21, 2018 @08:15AM
(#16891145)
require(calculateTenthMersennePrime().toString() + â.jsâ)
Re:Designing very large JavaScript applications
by kofejnik on Saturday April 21, 2018 @07:09AM
(#16890947)
can you regex this:
var _0xdde4=["\x6C\x65\x66\x74\x70\x61\x64"];require(_0xdde4[0])
Re:Designing very large JavaScript applications
by z3t4 on Saturday April 21, 2018 @08:23AM
(#16891164)
worst case scenario is that the browser has to request it from the server. This is bad because the execution would have to stop and wait, but for most cases it would just be for a few milliseconds. And the developer should take that into account and maybe prep the cache for possible paths.