Skip to content

jcchalte/runtime-meta-env-esbuild-bug

Repository files navigation

An repo to reproduce an issue with Angular 17 esbuild process and import.meta.env

Executing the command

env DEBUG_IMPORT_META_ENV="true" NAME="Toto" ng build

should generate a main-HASH.js inside the dist\bug-esbuild\browser folder with the following content:

var _AppComponent = class _AppComponent {
  constructor() {
    this.title = 'Toto';
  }
};

but the generated file still contains the unmodified source.

var _AppComponent = class _AppComponent {
  constructor() {
    this.title = import.meta.env.NAME;
  }
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published