Skip to content

Add a browser build to the github repo and npm package #2083

@paulovieira

Description

@paulovieira

Describe the problem you are trying to fix (provide as much context as possible)

With v16 it's now much easier to make joi work in the browser. However many devs are not confortable with webpack. I think we could make their lives easier (and spread joi usage) by providing a ready-to-use UMD build (that is, the browser/dist/joi.min.js file, which is the webpack output)

This UMS build could be used easily via unpkg.com, jsdelivr.com or similar services.

Which API (or modification of the current API) do you suggest to solve that problem ?

There is no modification to the API.

Are you ready to work on a pull request if your suggestion is accepted ?

Yes.

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions