Skip to content

Commit

Permalink
Update devextreme-generator packages versions. (#25539)
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Vinogradov <[email protected]>
  • Loading branch information
williamvinogradov and Ilya Vinogradov authored Sep 6, 2023
1 parent f272547 commit c31e412
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 371 deletions.
5 changes: 2 additions & 3 deletions js/renovation/test_utils/transformers/declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ module.exports = {
const result = compileCode(generator, src, {
path: filename,
dirname: path.dirname(filename),
},
true);
}, { includeExtraComponents: true });

if(result && result[1]) {
const componentName = (result[1].code.match(/export default class (\w+) extends/) || [])[1];
Expand All @@ -35,7 +34,7 @@ module.exports = {
ts.transpileModule(
// Vitik: jest.tsconfig set jsxFactory to h. Add import for support it.
// In propduction jsx transpaled by babel-plugin-inferno
`import { createElement as h } from "inferno-create-element";
`import { createElement as h } from "inferno-create-element";
${result[0].code}
${result[1].code
.replace('export default', 'export ')
Expand Down
Loading

0 comments on commit c31e412

Please sign in to comment.