Skip to content
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

fix(web): fix handling of buildLibsFromSource: false in dev-server executor #9326

Merged
merged 1 commit into from Mar 18, 2022
Merged

fix(web): fix handling of buildLibsFromSource: false in dev-server executor #9326

merged 1 commit into from Mar 18, 2022

Conversation

ms-tng
Copy link
Contributor

@ms-tng ms-tng commented Mar 15, 2022

fix(web): fix handling of buildLibsFromSource: false in dev-server executor

  • modify buildOptions.tsConfig before creating Webpack config
  • do not join buildOptions.tsConfig to root path as it is already an absolute path

Current Behavior

The dev-server executor of @nrwl/web doesn't respect the option buildLibsFromSource: false. There are two causes of this behavior:

  • The modification of buildOptions.tsConfig needed for buildLibsFromSource: false is applied after creating the Webpack config while it should be done before creating the Webpack config.
  • The path in buildOptions.tsConfig is joined to context.root although it is already an absolute path.

Note that the webpack executor, which has the same option, already works correctly.

Expected Behavior

The dev-server executor of @nrwl/web respects the option buildLibsFromSource: false. If this option is set, existing build artifacts of libraries are used instead of rebuilding them from source.

…ecutor

* modify buildOptions.tsConfig before creating Webpack config
* do not join buildOptions.tsConfig to root path as it is already an absolute path
@nx-cloud
Copy link

nx-cloud bot commented Mar 15, 2022

☁️ Nx Cloud Report

CI ran the following commands for commit e4b63b0. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 7 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Mar 15, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nrwl/nx-dev/HpoccT91KvU1EpQPruRf6XkHUawG
✅ Preview: Canceled

@FrozenPandaz FrozenPandaz changed the title Fix handling of buildLibsFromSource: false in dev-server executor fix(web): fix handling of buildLibsFromSource: false in dev-server executor Mar 18, 2022
Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! LGTM 🎉

@FrozenPandaz FrozenPandaz merged commit dff05dc into nrwl:master Mar 18, 2022
FrozenPandaz pushed a commit that referenced this pull request Mar 21, 2022
…ecutor (#9326)

* modify buildOptions.tsConfig before creating Webpack config
* do not join buildOptions.tsConfig to root path as it is already an absolute path
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants