-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(angular): add browser-esbuild support (#85)
- Loading branch information
Showing
16 changed files
with
2,824 additions
and
1,346 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
interface ImportMeta { | ||
readonly env: ImportMetaEnv; | ||
} | ||
|
||
interface ImportMetaEnv { | ||
/** | ||
* Built-in environment variable. | ||
* @see Docs https://github.com/chihab/dotenv-run/packages/angular#node_env. | ||
*/ | ||
readonly NODE_ENV: string; | ||
// Add your environment variables below | ||
// readonly NG_APP_API_URL: string; | ||
[key: string]: any; | ||
} | ||
|
||
/* | ||
* Remove all the deprecated code below if you're using import.meta.env (recommended) | ||
*/ | ||
|
||
/****************************** DEPREACTED **************************/ | ||
/** | ||
* @deprecated process.env usage | ||
* prefer using import.meta.env | ||
* */ | ||
// declare var process: { | ||
// env: { | ||
// NODE_ENV: string; | ||
// [key: string]: any; | ||
// }; | ||
// }; | ||
|
||
// If your project references @types/node directly (in you) or indirectly (as in RxJS < 7.6.0), | ||
// you might need to use the following declaration merging. | ||
// declare namespace NodeJS { | ||
// export interface ProcessEnv { | ||
// readonly NODE_ENV: string; | ||
// // Add your environment variables below | ||
// } | ||
// } | ||
|
||
// If you're using Angular Universal and process.env notation, you'll need to add the following to your tsconfig.server.json: | ||
/* In your tsconfig.server.json */ | ||
// { | ||
// "extends": "./tsconfig.app.json", | ||
// ... | ||
// "exclude": [ | ||
// "src/env.d.ts" | ||
// ] | ||
// } | ||
|
||
/*********************************************************************/ |
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
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
Oops, something went wrong.