Closed dakom closed 4 years ago
There isn't that much compile time difference between debug mode and release mode (they're both very slow). If it compiles for debug mode, then when you release it has to do a full recompilation. But if it always compiles in release mode, then it doesn't need to recompile.
You can see this yourself: delete target
, remove the debug: false
, then use yarn start
. Afterwards, use yarn build
. It will do a full compile twice.
But if you leave the debug: false
in, then use yarn start
, then use yarn build
, it will only compile once.
looking at e.g. https://github.com/Pauan/rust-dominator/blob/62ef25ea81395985c3b3fe0dc5c6dcdd07f30903/examples/counter/rollup.config.js#L19
Seems the
debug
mode is hardcoded tofalse
... should it not be true whenwatch
is true? (for local dev)