Open mattdesl opened 9 years ago
This happens when index.html
points to the same file (e.g. test.js
) as we are serving and bundling.
A workaround:
hihat test.js --serve bundle.js
To fix this bug, we could always use bundle.js
-- of course, if somebody does hihat bundle.js
the issue will appear again. Maybe using a unique hash or something? Or maybe there is a better solution.
example.js
no source maps:
however, it works when you
require('./foo.js')
from an entry.