mirror of
https://github.com/alrayyes/wiki.git
synced 2025-04-30 22:24:14 +00:00
popovers
This commit is contained in:
parent
cb89cce183
commit
8bfee04c8c
10 changed files with 143 additions and 16 deletions
quartz/plugins
|
@ -14,7 +14,8 @@ export type ComponentResources = {
|
|||
}
|
||||
|
||||
function joinScripts(scripts: string[]): string {
|
||||
return scripts.join("\n")
|
||||
// wrap with iife to prevent scope collision
|
||||
return scripts.map(script => `(function () {${script}})();`).join("\n")
|
||||
}
|
||||
|
||||
export function emitComponentResources(cfg: GlobalConfiguration, resources: StaticResources, plugins: PluginTypes, emit: EmitCallback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue