UI: Use eval-source-map instead of eval devtool

This commit is contained in:
Ilija Lazoroski 2022-04-12 12:20:09 +02:00 committed by ilija-lazoroski
parent 00dc772953
commit fd2dc2245c
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ const smp = new SpeedMeasurePlugin({ disable: isProduction });
module.exports = smp.wrap({ module.exports = smp.wrap({
mode : isProduction ? 'production' : 'development',
cache: { cache: {
type: 'filesystem', type: 'filesystem',
memoryCacheUnaffected: true memoryCacheUnaffected: true
@ -78,7 +79,7 @@ module.exports = smp.wrap({
} }
] ]
}, },
devtool: isProduction ? 'source-map' : 'eval', devtool: isProduction ? 'source-map' : 'eval-source-map',
plugins: [ plugins: [
new ForkTsCheckerWebpackPlugin({ new ForkTsCheckerWebpackPlugin({
typescript: { typescript: {