Import relative modules in blocks #1634
michaeljcoyne
started this conversation in
General
Replies: 2 comments
-
I have not worked with custom js in Twill yet. Maybe @pboivin has an answer? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It should be possible to use relative imports. With the current custom component workflow, your files are copied to
A bit unintuitive... This will surely be improved when Twill UI is refactored in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to import relative modules in blocks
eg.
import { bus } from '../../../js/app'
My npm build script will compile but twill:dev throws error:
This relative module was not found:
Thanks
Michael
Beta Was this translation helpful? Give feedback.
All reactions