Skip to content

Commit

Permalink
Added support for Drupal functions - formatting issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
psebborn committed Jan 5, 2024
1 parent 9408fb0 commit fe0ac39
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,13 @@ const plugin = (options = {}) => {
frameworkInclude = `import React from 'react'`
frameworkTransform = `const frameworkTransform = (html) => React.createElement('div', {dangerouslySetInnerHTML: {'__html': html}});;`
}
let embed, embeddedIncludes, functions
code, includes, (seen = [])
let embed,
embeddedIncludes,
functions,
code,
includes,
seen = []

try {
const result = await compileTemplate(id, id, options).catch(
errorHandler(id)
Expand Down

0 comments on commit fe0ac39

Please sign in to comment.