Skip to content
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

Sitelet debug with npm packages STEP 3 #1408

Open
Jand42 opened this issue May 22, 2024 · 0 comments
Open

Sitelet debug with npm packages STEP 3 #1408

Jand42 opened this issue May 22, 2024 · 0 comments

Comments

@Jand42
Copy link
Member

Jand42 commented May 22, 2024

Last piece needed for working with Sitelets using module-based JS. For local debug mode, for readability and quick iteration, it would be best if one-file-per-class readable .js files are used. However, browsers can't handle npm package imports as is, because it's underdefined (the packages-lock.json file and the node_modules folder are not accessible through the localhost server).

We need to provide either an import map or an integration for a localhost prebundler like Vite.

Jand42 added a commit that referenced this issue Jun 6, 2024
* #1408 write re-exports for non-bundled sitelet mode

* testing with FSharp proj

* fixes

* small fix for root.js addresses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant