diff --git a/src/p4/PackagerOptions.svelte b/src/p4/PackagerOptions.svelte index 9259d9c3..844d8993 100644 --- a/src/p4/PackagerOptions.svelte +++ b/src/p4/PackagerOptions.svelte @@ -43,6 +43,12 @@ defaultOptions.extensions = projectData.project.analysis.extensions; const options = writablePersistentStore(`PackagerOptions.${projectData.uniqueId}`, defaultOptions); + // Compatibility with https://github.com/TurboWarp/packager/commit/f66199abd1c896c11aa69247275a1594fdfc95b8 + $options.extensions = $options.extensions.map(i => { + if (typeof i === 'object' && i) return i.url || ''; + return i; + }); + const hasMagicComment = (magic) => projectData.project.analysis.stageComments.find( (text) => text.split('\n').find((line) => line.endsWith(magic)) );