-
Notifications
You must be signed in to change notification settings - Fork 518
Open
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds an initial reviewneeds an initial review
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
This package is currently published as CommonJS modules only. This makes it impossible to use in browsers and other environments that don't support Common JS, without a build step.
Expected Behavior
This should just work with a suitable import map:
import semver from 'semver';
This could be done as part of a migration to standard JS modules only, or a dual-mode package, possibly as part of #498
Steps To Reproduce
- In a browser
- With dev server that can rewrite bare module specifiers to URLs (such as
@web/dev-server
with the--node-resolve
flag) - Load a module script with
import semver from 'semver';
- See error...
Environment
- npm:
- Node:
- OS:
- platform: All browsers, Cloudflare Workers, more...
jLynx, Hyperkid123, SimonAlling, vsn4ik, snewell92 and 5 more
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds an initial reviewneeds an initial review