Replies: 1 comment
-
Moved to ts-loader. |
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
-
I created a domain-specific language XYZ and I would like to import it like normal JS, like this:
For the IDE I was able to create a Typescript plugin, so that I can see the members of
myfile.xyz
. What I am actually doing is transpiling the XYZ file to Typescript.As you can see, I am using the
ts-loader
to process the transpiled code.For an entry file like below I still get errors:
What am I doing wrong? Did I miss some configuration? Do I have a wrong imagination of Webpack? How to debug this? Do I maybe need to save the output as a file somewhere? If yes, how?
As far as I can see, the custom loader is transforming correctly to TS (It is noticeable when I remove the ts-loader from the loader-pair above). Webpack version is 5.90.2.
Beta Was this translation helpful? Give feedback.
All reactions