Friday, 15 November 2019

How to import NPM package in browser?

I want to use the NPM package driftless in the browser but using import gives an error that I need to be more specific about the module's address, and when I fix that I get another error about the address of a module getting imported inside the module, because the module itself is importing from another module, meaning I would have manually edit every module in the chain of imports to get it to work in the browser.But surely there is a better way?I mean the Github page of driftless itself says its for node and the browser so that implies there's a neat way to get it to work in the browser.

Submitted November 15, 2019 at 05:06PM by MelerEcckmanLawler

No comments:

Post a Comment