Skip to content

Commit 888c987

Browse files
Some changes to tsconfig to hopefully solve issues with nextjs
1 parent a87bb7e commit 888c987

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tsconfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"jsx": "preserve",
43
/* Visit https://aka.ms/tsconfig to read more about this file */
54

65
/* Projects */
@@ -14,7 +13,7 @@
1413
/* Language and Environment */
1514
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1615
"lib": ["ESNext"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
17-
// "jsx": "preserve", /* Specify what JSX code is generated. */
16+
"jsx": "react", /* Specify what JSX code is generated. */
1817
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
1918
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
2019
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
@@ -49,12 +48,13 @@
4948
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5049

5150
/* Emit */
52-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
51+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
52+
"declarationDir": "types", /* Specify the output directory for generated declaration files. */
5353
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
54-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
54+
"emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55+
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
5656
// "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. */
57-
"outDir": "build", /* Specify an output folder for all emitted files. */
57+
"outDir": "dist", /* Specify an output folder for all emitted files. */
5858
// "removeComments": true, /* Disable emitting comments. */
5959
// "noEmit": true, /* Disable emitting files from a compilation. */
6060
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -75,7 +75,7 @@
7575

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

0 commit comments

Comments
 (0)