From 88a988aaa7f2068827ad357da7430df2655b57d3 Mon Sep 17 00:00:00 2001 From: Anthony Rumsey Date: Tue, 13 Feb 2024 13:18:00 -0500 Subject: [PATCH 1/2] Add sourcemap support - improve developer experience while debugging storefront --- tsconfig.json | 1 + webpack.dev.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 852ae54..b203024 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,7 @@ "checkJs": false, "resolveJsonModule": true, "noUnusedParameters": true, + "sourceMap": true, "types": ["node", "jest"], "typeRoots": ["./src/types", "./node_modules/@types"], "paths": { diff --git a/webpack.dev.js b/webpack.dev.js index 99ea926..a959ba8 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -7,12 +7,13 @@ const { commonConfig, publicPaths } = require('./webpack.common.js'); module.exports = merge(commonConfig, { mode: 'development', + devtool: 'source-map', output: { publicPath: publicPaths.DEV, }, plugins: [ new webpack.DefinePlugin({ - API_URL: JSON.stringify('https://catalog-service.adobe.io/graphql'), + API_URL: JSON.stringify('https://catalog-sandbox.adobe.io/graphql'), TEST_URL: JSON.stringify( 'https://catalog-service-sandbox.adobe.io/graphql' ), From 4e696aea1cc8fda8bd212924a0452c9180f2b8a1 Mon Sep 17 00:00:00 2001 From: Anthony Rumsey Date: Tue, 13 Feb 2024 13:21:16 -0500 Subject: [PATCH 2/2] Add sourcemap support - improve developer experience while debugging storefront --- webpack.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.dev.js b/webpack.dev.js index a959ba8..3e7c11b 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -13,7 +13,7 @@ module.exports = merge(commonConfig, { }, plugins: [ new webpack.DefinePlugin({ - API_URL: JSON.stringify('https://catalog-sandbox.adobe.io/graphql'), + API_URL: JSON.stringify('https://catalog-service.adobe.io/graphql'), TEST_URL: JSON.stringify( 'https://catalog-service-sandbox.adobe.io/graphql' ),