You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@granicz First I am adding the possibility npm package-based imports.
I am modifying JS.Import to follow rules used by JS imports too:
if you want to import a locally defined module (resource in current assembly), you can do that as JS.Import("foo", "./localEmbedded.js").
Similartly, importing from another WS assembly should look like a relative path JS.Import("foo", "../AnotherLib/embedded.js")
Finally, as you write JS.Import("foo", "date-fns") will import from npm package "date-fns". Generally, if the import path does not start with ./ or ../, it is preserved exactly.
When using npm package-based imports, such as:
then raise an error, if the given npm package is not defined in the project file, say, using the femto convention:
The text was updated successfully, but these errors were encountered: