-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Raw Loading with application
and builder-esbuild
#26368
Comments
You can actually use To avoid a TypeScript error, you'll also need to add a type definition file (e.g.,
We are also evaluating further customization options for other file types in a future release. |
Good to know, thanks! One follow-up question. Should this work for extensions other than |
Currently just |
That would be a big 👍 from me. My specific use-case is that I'm bundling |
This is now in review here: #26371 |
Awesome, thank you!! |
@clydin This doesn't seem to be included in 17.0.2. Any ideas on when we can expect to see this? |
This will be available in 17.1.0 which is is currently in prerelease. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
build, serve
Description
I have some raw text files that I need to include in my build. To load them with
builder
-based builds, I am using the webpack raw-loader plugin.I currently import them as follows:
It would be amazing if I could do something similar from within the new
esbuild
-based loader. I saw thatvite
allows for a?raw
suffix on imports to do just this, but it did not seem to work when I tried it in Angular.Hopefully I'm just missing something here, but I didn't see this called out in the documentation.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: