Skip to content

Inject package version during build instead of importing it from pack… #434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
4 commits merged into from
Sep 13, 2021

Conversation

ghost
Copy link

@ghost ghost commented Sep 9, 2021

This pr fixes end users errors related to importing from package.json file.
The package version is injected during build instead of importing it from package.json.
Also mocked the version value during unit tests, because they rely on source code and not on build result.
I also tested manually by building and looking for the value in the resulted bundle, it was indeed replaced during build.

@ghost ghost requested review from strausr and patrick-tolosa September 9, 2021 16:18
@ghost ghost requested a review from patrick-tolosa September 12, 2021 14:34
@ghost ghost requested a review from strausr September 13, 2021 10:26
@ghost ghost merged commit 2648809 into master Sep 13, 2021
@patrick-tolosa patrick-tolosa deleted the fix/remove-package-json-import branch September 14, 2021 08:57
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants