Skip to content

Commit

Permalink
fix: sourmap warning in CRA #11
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyoki committed Mar 17, 2022
1 parent 869a949 commit 8a56d79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"🌟 --- Mains": "",
"clean": "rimraf dist",
"build": "yarn clean && run-p build:*",
"watch": "yarn clean && run-p 'build:* -- --watch'",
"dev": "yarn clean && run-p \"build:* --sourceMap --watch\"",
"lint": "eslint \"src/**/*.{ts,tsx}\" --fix",
"semantic-release": "semantic-release"
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
"sourceMap": false /* Create source map files for emitted JavaScript files. */,
// "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. */
"outDir": "./dist/cjs" /* Specify an output folder for all emitted files. */,
// "removeComments": true, /* Disable emitting comments. */
Expand All @@ -70,7 +70,7 @@
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */

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

0 comments on commit 8a56d79

Please sign in to comment.