webpack, why 'eval' is described as faster at 'rebuild'
Asked Answered
D

0

8

eval is one of the types of webpack source-map. As the official doc says,

eval - Each module is executed with eval() and //@ sourceURL. This is pretty fast. The main disadvantage is that it doesn't display line numbers correctly since it gets mapped to transpiled code instead of the original code.

I don't quite understand, why it's fast in this way?

Dareece answered 23/2, 2017 at 5:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.