Skip to content

Inlined dependency shaken differently when hoisted #946

@rschristian

Description

@rschristian

Summary

Bit of a weird one, but I'm seeing different results from Microbundle based on whether a dependency is hoisted or not. The module is resolved without issue in both cases.

As far as I can tell this is not specific to any one dependency.

Reproduction

  1. Clone https://github.com/rschristian/microbundle-symlink-bug
  2. $ yarn install && yarn copy-to-root && yarn example build
  3. Note that the bundle is 262 b w/ brotli
  4. $ yarn copy-to-subpackage && yarn example build (so hoisted version won't be used)
  5. Note that the bundle is now 42 b w/ brotli

This just uses a dummy package my-pkg sat in the root of the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions