-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(auth-providers): switch firebase web to esbuild (#11467)
Switches from babel to esbuild for building the src to dist. Follows the same pattern we have currently for the rest of them - not perfect but moving in the right direction.
- Loading branch information
1 parent
29dd25a
commit 68d1596
Showing
9 changed files
with
89 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { buildCjs, buildEsm } from '@redwoodjs/framework-tools' | ||
import { | ||
generateTypesCjs, | ||
generateTypesEsm, | ||
insertCommonJsPackageJson, | ||
} from '@redwoodjs/framework-tools/generateTypes' | ||
|
||
// ESM build and type generation | ||
await buildEsm() | ||
await generateTypesEsm() | ||
|
||
// CJS build, type generation, and package.json insert | ||
await buildCjs() | ||
await generateTypesCjs() | ||
await insertCommonJsPackageJson({ | ||
buildFileUrl: import.meta.url, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { createAuth } from './firebase' | ||
export { createAuth } from './firebase.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "../../../../tsconfig.compilerOption.json", | ||
"compilerOptions": { | ||
"strict": true, | ||
"rootDir": "src", | ||
"outDir": "dist", | ||
"tsBuildInfoFile": "./tsconfig.build.tsbuildinfo" | ||
}, | ||
"include": ["src"], | ||
"references": [ | ||
{ | ||
"path": "./../../../auth/tsconfig.build.json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "./tsconfig.build.json", | ||
"compilerOptions": { | ||
"outDir": "dist/cjs", | ||
"tsBuildInfoFile": "./tsconfig.cjs.tsbuildinfo" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters