Declined
Last Updated: 25 Nov 2021 13:05 by ADMIN
Liero
Created on: 02 Nov 2021 10:48
Category: Telerik REPL
Type: Feature Request
0
Allow loading of javascript modules

I want to be able to use NuGET library that dynamically imports ES6 modules in REPL.

 

Here is example of such REPL:

https://blazorrepl.telerik.com/GlbPumla45EkSDpz44

 

it fails to load following javascript file:

var scriptPath = "./_content/Toolbelt.Blazor.HotKeys/script.min.js";

3 comments
ADMIN
Nadezhda Tacheva
Posted on: 25 Nov 2021 13:05

Hi Daniel,

Telerik REPL for Blazor operates completely in the browser meaning that there is no actual server side. Furthermore, installing the NuGet packages is also performed on the client side and all needed files (JS, CSS, DLLs, etc.) are stored there as well. Having this specifics in mind, we are not able to implement server side routing.

Regards,
Nadezhda Tacheva
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Liero
Posted on: 25 Nov 2021 10:14

Correct me if I'm wrong, but it doesn't require folders on browser level.

You only need to implement server side routing, so that request to `./_content/Toolbelt.Blazor.HotKeys/script.module.min.js` is handled properly by the server

and possibly use importmap feature or custom import url rewriting in the static scripts.

 

ADMIN
Nadezhda Tacheva
Posted on: 09 Nov 2021 08:58

Hi Daniel,

At this stage, creating directories dynamically is not possible on browser level. Therefore, we are not able to generate such and include the desired files in it, so we are directly importing the static files on the page.

That said, I am marking the request as "Declined" as unfortunately this feature cannot be currently implemented due to the above listed browser limitation. We are trying to keep up to date with the latest framework and browser changes, so if at some point there is a solution for this functionality to be supported, we can reopen the post again and you will be notified via email for the status change.

Regards,
Nadezhda Tacheva
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.