Skip to content

Output build should have correct version number burnt #2524

@compulim

Description

@compulim

Version

master

Describe the bug

For the burnt version number, it appears to be undefined instead of 4.6.0.

In PR #2182, we moved from vulnerable babel-plugin-version-transform to babel-plugin-transform-inline-environment-variables. The environment variable should be in lowercase, npm_package_version, instead of NPM_PACKAGE_VERSION. Thus, the Babel plugin did not pick up and cannot burn it into the source file.

To Reproduce

Steps to reproduce the behavior:

  1. Host Web Chat with one of the daily build
  2. Navigate to the host app
  3. Press F12
  4. In the Elements tab, navigate to html/head/meta and see the burnt version of Web Chat

Expected behavior

It should say 4.6.0 or 4.6.0-... or 0.0.0-0 (for development build).

[Bug]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.customer-reportedRequired for internal Azure reporting. Do not delete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions