Setup Vite playground with custom Inferno/decorators plugin#32917
Draft
aleksei-semikozov wants to merge 3 commits intoDevExpress:25_1from
Draft
Setup Vite playground with custom Inferno/decorators plugin#32917aleksei-semikozov wants to merge 3 commits intoDevExpress:25_1from
aleksei-semikozov wants to merge 3 commits intoDevExpress:25_1from
Conversation
…corators Cherry-picked playground setup from PR DevExpress#30926, replaced vite-plugin-inferno with custom build/vite-plugin-devextreme.ts that supports: - Inferno JSX transformation via babel-plugin-inferno - TypeScript experimental decorators via @babel/plugin-proposal-decorators - TypeScript parsing via @babel/preset-typescript Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…n import - Added removeUninitializedClassFields babel visitor to strip type-only class property declarations that would otherwise initialize as undefined and overwrite values set during _init() in the legacy OOP system - Added @babel/plugin-transform-class-properties (loose) to convert field initializers to constructor assignments - Added @babel/plugin-transform-typescript as explicit dependency - Added jQuery integration side-effect import in scheduler-example.ts - Removed vite-plugin-inferno dependency, replaced with custom plugin Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move initialized class field assignments to end of constructor body to match TypeScript's legacy useDefineForClassFields:false behavior. This fixes cases where field initializers depend on constructor parameter properties (e.g. this._workSpace._dateTableScrollable). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vite-plugin-infernowith custombuild/vite-plugin-devextreme.tssupporting:babel-plugin-inferno@babel/plugin-proposal-decoratorsuseDefineForClassFields: false)Test plan
pnpm run dev:playgroundstarts on localhost:3000