From f7044e561cdaa129040be3a1968b1645538f80fc Mon Sep 17 00:00:00 2001 From: zodern Date: Wed, 13 Apr 2022 15:59:50 -0500 Subject: [PATCH] Add _dataUsed property to prelink resources The bundler expects this property to know if it should watch the resource. --- tools/isobuild/unibuild.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/isobuild/unibuild.js b/tools/isobuild/unibuild.js index 77c9410b2f..e1e1fbf38f 100644 --- a/tools/isobuild/unibuild.js +++ b/tools/isobuild/unibuild.js @@ -120,6 +120,10 @@ export class Unibuild { _.each(unibuildJson.resources, function (resource) { rejectBadPath(resource.file); + if (resource.type === 'head') { + console.dir(resource); + } + const data = files.readBufferWithLengthAndOffset( files.pathJoin(unibuildBasePath, resource.file), resource.length, @@ -153,7 +157,10 @@ export class Unibuild { usesDefaultSourceProcessor: true, legacyPrelink: { packageVariables: unibuildJson.packageVariables || [] - } + }, + // Only published packages still use prelink resources, + // so there is no need to mark this file to be watched + _dataUsed: false }; if (resource.sourceMap) {