chore: change webpack devtool option (#170)

This commit is contained in:
Juan Sebastian velez Posada
2023-02-15 08:34:49 -05:00
committed by GitHub
parent 0a2326948c
commit e57bdbbfc4
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
"name": "chrome-wakatime", "name": "chrome-wakatime",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "clap build",
"dev": "clap dev", "dev": "clap dev",
"postinstall": "clap postinstall", "postinstall": "clap postinstall",
"lint": "clap lint", "lint": "clap lint",

View File

@@ -19,7 +19,7 @@ const browserPolyfill = join(
); );
const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Configuration => { const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Configuration => {
const cfg: webpack.Configuration = { const cfg: webpack.Configuration = {
devtool: 'inline-source-map', devtool: 'source-map',
entry: { entry: {
background: [join(srcFolder, 'background.ts')], background: [join(srcFolder, 'background.ts')],
devtools: [join(srcFolder, 'devtools.ts')], devtools: [join(srcFolder, 'devtools.ts')],