sindresorhus / ow

Function argument validation for humans
https://sindresorhus.com/ow/
MIT License
3.8k stars 105 forks source link

use browser-side #230

Closed DuredhelFinceleb closed 2 years ago

DuredhelFinceleb commented 2 years ago

Is it possible to use ow browser-side? And using it simply, I mean with no webpack or whatever. I'm on an old JavaScript codebase that's still using RequireJS even though I'm not limited by things like IE11 support it's just that the cost of refactoring all this to use modern tooling is estimated to be too high Anyway, is there anyway to use ow in such a setup?

sindresorhus commented 2 years ago

No, unfortunately not.

There are two main reasons:

I would recommend looking into moving your project from RequireJS to native ESM though. You don't have to go all in on tooling for that. And it will make it much easier to adopt libraries in the future.

And if you're ok with some tooling, but less than Webpack, then https://www.snowpack.dev is a good choice.