pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx
MIT License
810 stars 47 forks source link

Support tsx #149

Open pruge opened 2 years ago

pruge commented 2 years ago

To use pug in typescript, you need to take the following syntax every time.

import x; x

To solve this problem, I made the following two.

  1. webpack plugin

    This library adds variables used in pug at build time. webpack-preprocessor-pug-tsx

or

  1. vscode extension

    This extension adds variables used in pug when saving. pug-tsx