-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
🙉 open/needs-infoThis needs some more infoThis needs some more info🦋 type/enhancementThis is great to haveThis is great to have
Description
Subject of the feature
Support writing decorator and class in MDX file
Problem
Now, if I want to write class or decorator in mdx file, it will report an error. maybe we need add a feature to enable those grammar
Like if I write a class in mdx file it will throw an error from '@mdx-js/loader/index.js':
Support for the experimental syntax 'classProperties' isn't currently enabled,
It is actually not a bug in mdx, but a problem caused by lack of babel-loader plugin, I have tried to add those plugins in mdx/mdx-hast-to-jsx.js, solved those errors but caused another error -.-

Expected behavior
Now, the mdx seems not support class declaration and other experimental syntax, So I want mdx to support more experimental
Alternatives
No alternatives
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🙉 open/needs-infoThis needs some more infoThis needs some more info🦋 type/enhancementThis is great to haveThis is great to have