Skip to content

Commit 9fd5be5

Browse files
authored
Merge pull request #12 from iamyoki/fix-source-map-warning
fix: sourmap warning in CRA #11
2 parents 869a949 + 8a56d79 commit 9fd5be5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"🌟 --- Mains": "",
3131
"clean": "rimraf dist",
3232
"build": "yarn clean && run-p build:*",
33-
"watch": "yarn clean && run-p 'build:* -- --watch'",
33+
"dev": "yarn clean && run-p \"build:* --sourceMap --watch\"",
3434
"lint": "eslint \"src/**/*.{ts,tsx}\" --fix",
3535
"semantic-release": "semantic-release"
3636
},

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
4949
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5050
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
51-
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
51+
"sourceMap": false /* Create source map files for emitted JavaScript files. */,
5252
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
5353
"outDir": "./dist/cjs" /* Specify an output folder for all emitted files. */,
5454
// "removeComments": true, /* Disable emitting comments. */
@@ -70,7 +70,7 @@
7070
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
7171

7272
/* Interop Constraints */
73-
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
73+
"isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */,
7474
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
7575
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
7676
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */

0 commit comments

Comments
 (0)