Skip to content

Commit 1b86b4e

Browse files
smoghe-bwclaude
andcommitted
fix: disable sourceMap output to prevent source-map-loader errors in consumers
When installed via file: reference, CRA's source-map-loader follows relative paths in .js.map files that escape the project root through the symlink, causing ENOENT. Disabling source maps removes the .map files entirely. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent cb7b226 commit 1b86b4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
1111
"declaration": true /* Generates corresponding '.d.ts' file. */,
1212
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
13-
"sourceMap": true /* Generates corresponding '.map' file. */,
13+
"sourceMap": false,
1414
// "outFile": "./", /* Concatenate and emit output to single file. */
1515
"outDir": "./dist" /* Redirect output structure to the directory. */,
1616
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */

0 commit comments

Comments
 (0)