You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all the watch options via cli arguments are broken due to the presence of a flag/boolean argument with the same name as the config object (watch).
a valid workaround is to use those options via config file. as a personal choice, i treat the config file as a build recipe and only add options related to the build process. i prefer to keep cli ui options as cli arguments (watch.clearScreen, for example).
i would happily submit a pr fixing it if you guys have any suggestion.
Rollup Version: v1.18.0
Operating System (or Browser): macos v10.14.6
Node Version: v11.14.0
How Do We Reproduce?
run rollup -cw --no-watch.clearScreen using any valid config file
Expected Behavior
no errors, watch mode with watch.clearScreen: false
Actual Behavior
fatal error output:
Cannot create property 'clearScreen' on boolean 'true'
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. I’m not sure we can actually make this work, the best way forward seems to me to add single word shortcuts for the command line, e.g. —no-clearScreen, or short cuts without the dot.
all the watch options via cli arguments are broken due to the presence of a flag/boolean argument with the same name as the config object (
watch
).a valid workaround is to use those options via config file. as a personal choice, i treat the config file as a build recipe and only add options related to the build process. i prefer to keep cli ui options as cli arguments (
watch.clearScreen
, for example).i would happily submit a pr fixing it if you guys have any suggestion.
How Do We Reproduce?
rollup -cw --no-watch.clearScreen
using any valid config fileExpected Behavior
no errors, watch mode with
watch.clearScreen: false
Actual Behavior
fatal error output:
The text was updated successfully, but these errors were encountered: