Replies: 1 comment 1 reply
-
Hey, I want to work with typescript file inside my _data I'm trying doing this by using esbuild to transform ts to js file but it's kind complicated. Some help would be appreciate :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to get a typescript data file to work. My ultimate goal is to expose some helper functions to njk macros via either context or shortcodes.
Things that popped up in my mind:
require('somefile.ts')
Has anyone tried this? I am missing some parts of this puzzle, but cannot figure out which.
Beta Was this translation helpful? Give feedback.
All reactions