Skip to content

Commit

Permalink
chore: Use of --moduleResolution bundler (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle authored Oct 26, 2023
1 parent bc22877 commit 97b82ae
Show file tree
Hide file tree
Showing 19 changed files with 70 additions and 135 deletions.
7 changes: 4 additions & 3 deletions examples/advanced/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/faker/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/msw-v2/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/msw/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/react-query-v5/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/react-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/simple-single/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/solid-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/svelte-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/swr/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
13 changes: 4 additions & 9 deletions examples/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"isolatedModules": true,
"jsx": "react-jsx",
"declaration": true,
"outDir": "es",
Expand Down
5 changes: 3 additions & 2 deletions examples/vue-query/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "node",
"sourceMap": true,
"strictNullChecks": true,
Expand Down
7 changes: 4 additions & 3 deletions examples/zod/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
7 changes: 4 additions & 3 deletions examples/zodios/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2020",
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler",
"sourceMap": true,
"strictNullChecks": true,
"jsx": "react-jsx",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/ts-config/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"target": "ES2020",
"verbatimModuleSyntax": true,
"allowJs": true,
"resolveJsonModule": true,
Expand Down
83 changes: 0 additions & 83 deletions packages/config/ts-config/bun.json

This file was deleted.

9 changes: 9 additions & 0 deletions packages/config/ts-config/bundler.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./base.json",
"display": "Bun",
"compilerOptions": {
/* If NOT transpiling with TypeScript: */
"module": "ES2020",
"moduleResolution": "Bundler"
}
}
2 changes: 1 addition & 1 deletion packages/config/ts-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files": [
"reset.d.ts",
"base.json",
"bun.json"
"bundler.json"
],
"devDependencies": {
"typescript": "^5.2.2"
Expand Down

0 comments on commit 97b82ae

Please sign in to comment.