Replies: 2 comments 4 replies
-
|
What works so far:
Here's what doesn't:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I’m not sure about TypeScript support (but you may be able to make use of |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine a
utils.jsfile with a bunch of functions.I'd like to access those functions in
.eleventy.js,_data/*.js, and others.Adding a
utils = require("/_scripts/utils.js");of some sort is fine. I just don't know how to do it.Full disclaimer: I have near zero webdev experience 😅. Just making do with guessing based on behavior from desktop-bound languages. So the above is the behavior I'm looking for, but I don't mind what form it takes if it's not over-complicated.
Beta Was this translation helpful? Give feedback.
All reactions