Skip to content

Creating a plugin using TypeScript #2502

Answered by RobinMalfait
Nick-Mazuk asked this question in Help
Discussion options

You must be logged in to vote

As far as I know, you will have to compile to JS because of the following reasons:

  1. Tailwind CSS itself is not written in TypeScript
  2. Tailwind CSS uses the commonjs module system
  3. Because of this ^ it can still work in older version like node 8

So for now you will need to transpile it yourself. In the future we might be able to accept tailwind configs that are written in TypeScript directly, but then we need to transpile it. Either transpile it beforehand or at runtime using something like ts-node.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Nick-Mazuk
Comment options

Answer selected by Nick-Mazuk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants