You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
importsemverfrom'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...
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
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:
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
@web/dev-server
with the--node-resolve
flag)import semver from 'semver';
Environment
The text was updated successfully, but these errors were encountered: