Skip to content

Commit 0d4c29a

Browse files
committed
chore: Require ejs in function
1 parent ac27729 commit 0d4c29a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

markdown-confluence-sync.config.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
const ejs = await import("https://cdn.jsdelivr.net/npm/[email protected]/ejs.min.js");
2-
3-
export default {
4-
preprocessor: (content) => {
5-
// eslint-disable-next-line no-console
6-
console.log(content);
7-
const renderedContent = ejs.render(content, {});
8-
return renderedContent;
9-
},
10-
logLevel: "debug",
1+
export default async () => {
2+
const ejs = await import("https://cdn.jsdelivr.net/npm/[email protected]/ejs.min.js");
3+
return {
4+
preprocessor: (content) => {
5+
// eslint-disable-next-line no-console
6+
console.log(content);
7+
const renderedContent = ejs.render(content, {});
8+
return renderedContent;
9+
},
10+
logLevel: "debug",
11+
};
1112
};

0 commit comments

Comments
 (0)