Skip to content

Commit

Permalink
Debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 27, 2022
1 parent e77f38c commit 6d8c3a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/run/loadConfigFile.ts
Expand Up @@ -65,6 +65,8 @@ async function getConfigFileExport(fileName: string, commandOptions: Record<stri
if (process.env.ROLLUP_WATCH) {
// We are adding the current date to allow reloads in watch mode
fileUrl.search = `?${Date.now()}`;
// TODO Lukas remove
console.error('detected watch, using extension', fileUrl.href);
}
return (await import(fileUrl.href)).default;
} catch (err: any) {
Expand Down
Expand Up @@ -6,6 +6,7 @@ const configFile = path.join(__dirname, 'rollup.config.mjs');
let stopUpdate;

module.exports = {
solo: true,
description: 'immediately reloads the config file if a change happens while it is parsed',
command: 'rollup -cw',
before() {
Expand Down Expand Up @@ -48,7 +49,6 @@ module.exports = {
stopUpdate();
},
abortOnStderr(data) {
console.log('data', data);
if (data === 'initial\n') {
stopUpdate = writeAndRetry(
configFile,
Expand Down

0 comments on commit 6d8c3a4

Please sign in to comment.