Skip to content

Commit

Permalink
Fix constructor rename and stylelint dynamic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vdiez committed Nov 12, 2024
1 parent f2a2380 commit 89c9165
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ await esbuild.build({
'tryRequire(`eslint-import-resolver-${name}`, sourceFile)',
'require("eslint-import-resolver-node")',
],
[
'style.syntax = loadSyntax(opts, __dirname);',
'style.syntax = {parse: require("postcss-html/template-parse"), stringify: require("postcss/lib/stringify")}; opts.syntax.config["css"]={stringify: require("postcss/lib/stringify"),parse: require("postcss/lib/parse")}',
],
[
"postcssDoc && postcssDoc.constructor.name === 'Document' ? postcssDoc.nodes : [postcssDoc]",
"postcssDoc && postcssDoc.constructor === require('postcss-syntax/document') ? postcssDoc.nodes : [postcssDoc]",
],
],
}),
copy({
Expand Down

0 comments on commit 89c9165

Please sign in to comment.