loadable-components icon indicating copy to clipboard operation
loadable-components copied to clipboard

Passing `hash` and `outputPath` make builds non deterministic

Open Aghassi opened this issue 2 years ago • 2 comments

https://github.com/gregberge/loadable-components/blob/b3a9febff55b02c49ceba602f07fa5128d53fe36/packages/webpack-plugin/src/index.js#L29

We've found that passing hash and outputPath make the files generated by this plugin non deterministic. Can we either disable it completely by defaulting to false or have a preference to override it so that we can keep builds deterministic? This is because the json file generated will have hashes and full file paths in it, which changes per build. We are using bazel and this means that we can't get cache hits even on almost fully deterministic builds.

CC @joeljeske

Aghassi avatar Jun 01 '22 20:06 Aghassi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 05:08 stale[bot]

I've opened a PR to address this and start discussions with any maintainers. This issue should avoid being marked as stale or won't fix.

Aghassi avatar Aug 14 '22 00:08 Aghassi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 16 '22 05:10 stale[bot]

The issue is going to be fixed, it is waiting on review

Aghassi avatar Oct 17 '22 21:10 Aghassi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 07 '23 19:01 stale[bot]

@theKashey can you reopen https://github.com/gregberge/loadable-components/pull/908 and please comment on if this or the PR I opened is unreasonable? It sounded like it could be merged but never did and I'm tired of fighting this bot honestly. I'd like to not maintain my internal patch if this is allowed to be merged.

Aghassi avatar Apr 04 '23 03:04 Aghassi

@fivethreeo Tagging you too if you'd be interested if @theKashey is busy. I see no reason this can't be upstreamed and would like to work to get it in if so.

Aghassi avatar Apr 04 '23 03:04 Aghassi