Skip to content

conditional exports show an unexpected warning message, even though no longer behind flag #31819

Closed
@FredKSchott

Description

@FredKSchott
  • Version: Node v13.8.0
  • Platform: Mac OSX

What steps will reproduce the bug?

$ node --version
v13.8.0
$ npm install es-module-lexer@0.3.16
$ node -e "require('es-module-lexer')"
(node:75146) ExperimentalWarning: Conditional exports is an experimental feature. This feature could change at any time

How often does it reproduce? Is there a required condition?

Always on latest Node v13

What is the expected behavior?

I wouldn't expect to see any warning whatsoever.

Additional information

https://nodejs.org/api/esm.html#esm_conditional_exports

This documentation exists without any sort of experimental warning. It is not hidden behind any flag.

More confusing to users, It is a warning that is exposed by the libraries that they consume. So the user can update their dependencies (or add new ones) and start to get this warning without understanding why.

For Snowpack, we want to use this package that uses conditional exports, but are now worried about this warning message confusing our users.

/cc @guybedford

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions