Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: nested export conditions not supported #222

Open
pi0 opened this issue Aug 25, 2021 · 0 comments
Open

fix: nested export conditions not supported #222

pi0 opened this issue Aug 25, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pi0
Copy link

pi0 commented Aug 25, 2021

πŸ› The bug
What isn't working? Describe what the bug is.

πŸ› οΈ To reproduce

package.json: (trying on ohmyfetch)

  "exports": {
    ".": {
      "node": {
        "import": "./dist/node.mjs",
        "require": "./dist/node.js"
      },
      "default": {
        "import": "./dist/index.mjs",
        "require": "./dist/index.js"
      }
    },
    "./node": {
      "import": "./dist/node.mjs",
      "require": "./dist/node.js"
    }
  }

Output:

 ERROR  path.startsWith is not a function                                                                                                                                                                                                                                                      16:56:11

  at getEntrypointFilenames (node_modules/siroc/bin/cli.js:170:12)
  at Package.resolveEntrypoint (node_modules/siroc/bin/cli.js:485:23)
  at node_modules/siroc/bin/cli.js:736:43
  at Array.map (<anonymous>)
  at getRollupConfig (node_modules/siroc/bin/cli.js:736:27)
  at node_modules/siroc/bin/cli.js:866:24
  at Generator.next (<anonymous>)
  at fulfilled (node_modules/siroc/bin/cli.js:824:24)
@pi0 pi0 added the bug Something isn't working label Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants