Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

npm-link #67

Closed
Closed

Description

@lsbardel

I have a library that bundles together several rollup-friendly libraries.
Everything works very well, but when I use npm-link on any of the libraries things don't work as expected anymore.

The resulting bundle includes imported libraries more than once.
Not a big deal, this is development issue, but the bundle can get quite big during development

Activity

  1. Reinmar commented on Jan 4, 2017

    @Reinmar

    We've experience the same issue.

    I created a small test project in https://github.com/ckeditor/ckeditor5-design/tree/81a16f0b01a017538224c1eb38b253d390634242

    It uses https://github.com/lerna/lerna to manage several packages – after running it (lerna bootstrap) all the deps are symlinked between each other.

    I've tested Webpack and Rollup. Webpack (and Browserify) works fine – the c2 console log is there only once. In Rollup's output it's included twice.

    This is a serious issue as e.g. instanceof checks fail, variables scoped in modules will be duplicated, etc.

  2. quantizor commented on Jan 9, 2017

    @quantizor

    I'm seeing the same thing. @Rich-Harris in the issue where you merged symlink support, you mentioned it would only work for the "default resolver". Does that not include this plugin?

  3. muyi0327 commented on Jan 19, 2017

    @muyi0327
  4. Reinmar commented on Feb 23, 2017

    @Reinmar

    We prepared a PR for this bug: #82 :) Works in our case (CKEditor 5).

  5. lsbardel commented on Sep 29, 2017

    @lsbardel
    Author

    Is closed equivalent to resolved?

    I still have the same issue when using three dependencies
    A => B => C
    A link B & C
    B link C

    some information would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions