Skip to content

Pass codeSplitting generated filenames to onwrite hooks - #2115

Closed
Andarist wants to merge 1 commit into
rollup:masterfrom
Andarist:onwrite-pass-file
Closed

Andarist wants to merge 1 commit into
rollup:masterfrom
Andarist:onwrite-pass-file

Conversation

@Andarist

@Andarist Andarist commented Apr 8, 2018

Copy link
Copy Markdown
Member

In case of codeSplitting there is no way to know what file got generated when it gets called and it's useful for onwrite hook

@guybedford

Copy link
Copy Markdown
Contributor

Thanks - this is a great approach, I'm just considering the plugin hooks around code splitting at the moment, and would like to put a bit more thought to the state contract of plugins. I'm even wondering if an asset emission API may make more sense here since we might need that for WASM as well. Will aim to come up with some feedback soon in reference to this. Further discussion welcome too.

@guybedford

Copy link
Copy Markdown
Contributor

I've posted #2126 to provide this functionality, where chunk.name effectively provides the same information.

@lukastaegert

Copy link
Copy Markdown
Member

Hi @Andarist, as #2208 (which is basically the revised version of #2126) has now been merged and released, does this meet your requirements and can this one be closed?

@Andarist

Andarist commented Jul 3, 2018

Copy link
Copy Markdown
Member Author

I'm not entirely sure, this was just a minor issue that I've noticed once. If I come across this issue again then gonna report it, for now I would consider this to be solved.

@Andarist Andarist closed this Jul 3, 2018
@Andarist
Andarist deleted the onwrite-pass-file branch July 3, 2018 19:50
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