Within plugin/my-plugin.ts
is the script that turns a template variable or object property that's JSX into a string.
This is a rather simple and dumb project done for learning purposes. I've learned that regex is hard.
$ pnpm install
$ pnpm run dev
TypeScript will definitely shout about the pui attribute not existing. This has no nice fix, but messing into the node_modules
- Import type
DetailedHTMLProps
from react - Right click on
DetailedHTMLProps
and click "Go to type definition" - Change type to
type DetailedHTMLProps<E extends HTMLAttributes<T>, T> = ClassAttributes<T> & E & { pui?: string; };
TypeScript might shout about missing types for @peasy-lib/peasy-ui
, if so:
- Go to the
node_modules/@peasy-lib/peasy-ui
folder and - Remove the exports property within the package.json.