GithubHelp home page GithubHelp logo

Comments (4)

darlanalves avatar darlanalves commented on July 19, 2024 1

Hello guys! Sorry for the super late response.

So, from what I know so far about rollup, it goes through the list of modules included and pass their names down the chain of plugins to be resolved.

@Narretz:
The purpose of this plugin is to simplify the inclusion of modules from paths relative to one or more base paths. In your case, it would not be a relative resolution, but a node module instead. If you don't use another plugin to include node_modules folder, it will be marked as external and left out of the final bundle.
That being said, the include option is a bypass of the entire plugin code, pointing a module name directly to a file path. I don't know exactly why your module is being marked as external, it should be included in the bundle as well.
I think a better approach in this case would be a removal of your include option here and add the https://github.com/rollup/rollup-plugin-commonjs plugin in your setup to add node modules.

@adriengibrat:
Thanks for your PR. I'm adding it to the plugin πŸ‘

from rollup-plugin-includepaths.

adriengibrat avatar adriengibrat commented on July 19, 2024

same here, option.include seems broken since #3 has changed cache key structure...

But for your particular issue, if foo is in node_modules, it is an external dependency, so you don't really have to use include option ;)

from rollup-plugin-includepaths.

adriengibrat avatar adriengibrat commented on July 19, 2024

Great, thanks for the merge!

Could we expect a release including the bug fix ?
I hope a 0.1.6, unless you have more to add.

P.S. I've payed lately with npm commands, i discovered you can :

"engines": {
  "npm": ">= 2.13.2"
},
"scripts": {
  "postversion": "git push && git push --tags"
},
  • pass commit message to npm version
npm version patch -m "%s include option won't treat included dependencies as external dependency"
npm deprecate rollup-plugin-includepaths@"0.1.3 - 0.1.5" "v0.1.6 fix issue with include option"

from rollup-plugin-includepaths.

darlanalves avatar darlanalves commented on July 19, 2024

Fixed with release 0.1.6 (#11). Closing the issue.

from rollup-plugin-includepaths.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.