observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.47k stars 118 forks source link

Option to disable implicit imports? #1735

Open steve-a-jones opened 2 weeks ago

steve-a-jones commented 2 weeks ago

Hello,

I'm new to framework and currently attempting the hello world setup on my machine. Given I am on VPN calls to the npm registry will be blocked as all packages must be resolved through our internal registry. Is it possible to deactivate implicit imports? I'm fine with install all needed dependencies manually.

mbostock commented 2 weeks ago

There is not currently an option to disable implicit imports and/or npm: imports, no, but you can avoid them by not using them. See also https://github.com/observablehq/framework/issues/1168#issuecomment-2028238020 for how to configure npm requests to go through your internal registry.