Skip to content

Commit 2f94c60

Browse files
committed
fix watch() not passing rootFolderPath through to processScript()
1 parent 93e7bef commit 2f94c60

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/watch.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,16 @@ export async function watch(sourceDirectory: string, hackmudDirectory: string, {
145145
try {
146146
({ script: minifiedCode, warnings } = await processScript(
147147
await readFile(filePath, { encoding: `utf8` }),
148-
{ minify, scriptUser: true, scriptName, uniqueId, filePath, mangleNames, forceQuineCheats }
148+
{
149+
minify,
150+
scriptUser: true,
151+
scriptName,
152+
uniqueId,
153+
filePath,
154+
mangleNames,
155+
forceQuineCheats,
156+
rootFolderPath
157+
}
149158
))
150159
} catch (error) {
151160
assert(error instanceof Error, HERE)

0 commit comments

Comments
 (0)