produce sourcemap

This commit is contained in:
David Reed 2022-11-19 19:07:22 -05:00
parent f48e34b5b5
commit 17c5b6b7b7
No known key found for this signature in database
GPG key ID: 2211691D8A1EE72F

View file

@ -10,6 +10,7 @@ const isDevelopment = process.env.NODE_ENV !== 'production';
*/ */
const config = { const config = {
mode: isDevelopment ? 'development' : 'production', mode: isDevelopment ? 'development' : 'production',
devtool: isDevelopment ? 'eval' : 'source-map',
entry: { entry: {
bundle: fileURLToPath( bundle: fileURLToPath(
new URL('./src/rewrite/index.js', import.meta.url) new URL('./src/rewrite/index.js', import.meta.url)