node_modules/.pnpm/@Wikia+post-quecast@2.0.1/node_modules/@wikia/post-quecast/dist/module/index.js (16:15)
A comment "/@PURE/" in "node_modules/.pnpm/@Wikia+post-quecast@2.0.1/node_modules/@wikia/post-quecast/dist/module/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
|
/** |
|
* Adds @__PURE__ to every instance (class, const method etc.) to allow tree shaking |
|
* @returns {{renderChunk(string): {code: string, map: null}}} |
|
*/ |
|
export function markAsPure() { |
|
return { |
|
renderChunk(code) { |
|
return { |
|
code: code.replace(/^(var .+) = /gm, match => match.replace(' = ', ' = /*@__PURE__*/ ')), |
|
map: null, |
|
}; |
|
}, |
|
}; |
|
} |
post-quecast/rollup.config.js
Lines 9 to 22 in 3aec7f7