-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Publish blazor.*.js files to npm #10124
Comments
And dedupe signalr if you are additionally using that so its not double included. |
Is this planned to be implemented anytime soon? |
@danroth27 what're your thoughts on this? |
@javiercn Is there a better way to integrate the Blazor framework scripts into an asset build pipeline without us having to release them to NPM? |
@danroth27 we might be able to concoct something, but tbh the proper way to do this is to publish some sort of package to the npm registry, at the very least with the typings. |
For type definitions, see also: DefinitelyTyped/DefinitelyTyped#42392. |
Note as part of this task, we may want to consider adding official docs on how to use TypeScript with Blazor, environment/project configuration, etc. cc/ @guardrex. No action now but just so it's on your radar 😄 |
If it becomes possible to get the JS code from a different source, we should add some kind of exact version match checking at runtime, blocking the app from starting unless it's exactly correct. Until now we've never had to deal with people using the wrong version of |
Thanks for contacting us. We're moving this issue to the |
Thanks for contacting us. We're moving this issue to the |
Thanks for contacting us. We're moving this issue to the |
Manually created TypeScript type definitions for the |
I wanted the types to handle the things in my ts files. So I generated the types based on this ts file and used it. Ensure the tsconfig.json has below things.
|
I'm working on implementing some server-side Blazor components, but I have a lot of other Javascript functionality on the page. I would like to be able to include the needed
blazor.server.js
file in my webpack build process, instead of having to embed it directly on the page. This way all of the Javascript for my application gets included in one file.I would like to be able to bundle
blazor.server.js
into my webpack build, by either accessing it through NPM or being able to link to it directly. However, according to dotnet/AspNetCore.Docs#12358 this is an embedded resource in the middleware, so I'm not sure how I can access it and include it in my build.The text was updated successfully, but these errors were encountered: