[bug] fix building bug in non-sourcemap mode
[chore] make webpack emit source maps