Skip to content

Conversation

@izaera
Copy link
Member

@izaera izaera commented Feb 18, 2021

This is needed as a prerequisite for https://issues.liferay.com/browse/LPS-127990

I've tested it locally and build is OK. Runtime doesn't fail but we'll see in the CI if we need anything else. 🤞


Server side PR here 👉 liferay-frontend/liferay-portal#813

We have changed this logic in bundler 2, but it remains the same in bundler 3 because we don't
know if it should be changed there. But, since we need similar changes here I'm copying them.

This is also a step towards removing the dependency from js-toolkit-core.
Also write federation config to a persistent temporary file in the build folder for debugging and
development purposes.
I'm also fixing the feature, because it wasn't working on successful exit.

The rationale behind this feature is that, for webpack federation, I want to keep temporary files
in the build directory after the build. This is because it contains very useful information for
development/debug purposes and, given that the temporary file is small and written to the build
directory, I think it is better to keep it.
Copy link
Contributor

@wincent wincent left a comment

Choose a reason for hiding this comment

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

I only got nits. Feel free to change/ignore as you see fit.

@izaera
Copy link
Member Author

izaera commented Feb 19, 2021

I'm merging this and will release it then, to test it in liferay-frontend/liferay-portal#813

🕯️

@izaera izaera merged commit 68cd24c into liferay:master Feb 19, 2021
izaera added a commit to izaera/liferay-portal that referenced this pull request Feb 22, 2021
izaera added a commit to izaera/liferay-portal that referenced this pull request Feb 24, 2021
izaera added a commit to izaera/liferay-portal that referenced this pull request Feb 25, 2021
brianchandotcom pushed a commit to brianchandotcom/liferay-portal that referenced this pull request Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants