microsoft / microsoft/BotFramework-DirectLineJS

use babel transform instead of webpack to inject `process.env.VERSION`

Open
#151 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backlog bug
Dominant language
TypeScript
Stars
199
Forks
133
PR merge metrics
No merged PRs in 30d

Description

Currently, only the webpacked bundle has this variable injected, while the npm module does not.

This package should help: https://github.com/FormidableLabs/babel-plugin-transform-define

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the webpacked bundle and npm module build paths to find where process.env.VERSION is injected. Read the referenced babel-plugin-transform-define package, then verify that both outputs expose the version value consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, typescript, webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.