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

Open option doesn't end build process #27

Closed
vladshcherbin opened this issue Feb 24, 2019 · 8 comments
Closed

Open option doesn't end build process #27

vladshcherbin opened this issue Feb 24, 2019 · 8 comments

Comments

@vladshcherbin
Copy link

When { open: true } is used, stats file is opened in a browser, but the build process doesn't end.

Similar issue - #17 (comment)

I've updated test repo to reflect this issue.

node - 11.7.0
macOS - 10.13.4

@btd
Copy link
Owner

btd commented Feb 24, 2019 via email

@vladshcherbin
Copy link
Author

@btd why wouldn't it? I thought it would create stats (as default) and just open a browser to see them.

If I don't want to end build I'd use watch option, no?

@btd
Copy link
Owner

btd commented Feb 25, 2019

Well, maybe, not sure. But how in this case plugin should detect if it is running in watch mode and do not stop build?

@vladshcherbin
Copy link
Author

vladshcherbin commented Feb 25, 2019

@btd you can check, if rollup is in watch mode by using process.env.ROLLUP_WATCH, it will be true

I found it recently and opened an issue as it's not in the docs

@btd
Copy link
Owner

btd commented Feb 25, 2019

ok, so it looks i can add option like throwOnOpen. i do not want to add process.exit because it will exit whole process, even if plugin used programatically (i use at least in this way). This way i do not need to care about ROLLUP_WATCH

@vladshcherbin
Copy link
Author

vladshcherbin commented Feb 25, 2019

@btd let's don't rush it and find a good solution.

can you describe a bit how you use it and why do you need it to stay open? maybe watch can help somehow? tell about it, I might be missing the purpose :)

@btd
Copy link
Owner

btd commented Feb 26, 2019

@vladshcherbin i do not use watch, because rollup is only one part of whole build process.

@btd
Copy link
Owner

btd commented Apr 9, 2019

Closing because of lack of interest

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

No branches or pull requests

2 participants