Comments (4)
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.
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.
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 :
- hook in
npm version
with scripts inpackage.json
since [email protected] :
"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
bugged releases:
npm deprecate rollup-plugin-includepaths@"0.1.3 - 0.1.5" "v0.1.6 fix issue with include option"
- make range expression like a pro with https://semver.npmjs.com ;)
from rollup-plugin-includepaths.
Fixed with release 0.1.6 (#11). Closing the issue.
from rollup-plugin-includepaths.
Related Issues (18)
- Resolve `<module-name>/index.js` HOT 4
- Usage with `commonjs` & `node-resolve`? HOT 2
- Add a `strict` option for path resolution HOT 2
- does not load module index with other extensions HOT 2
- question: How to make it work with eslint? HOT 1
- "external" option doesnβt accept function as value HOT 1
- Breaking changes in updates 0.1.x HOT 1
- Resolve against package.json main field
- Unable to resolve file path? HOT 1
- External option is overrided by the plugin if it is a function HOT 2
- Any interest in supporting TypeScript at some point? HOT 1
- Smart resolve or wildcards HOT 1
- `resolveCachedPath` ignores `origin` HOT 5
- 0.1.4 caused `TypeError: rollupIncludePaths is not a function` on Ubuntu 16.04 HOT 2
- diamond import/export structure fails
- Not working with rollup-plugin-node-builtins HOT 7
- "filepath" does not exist in the hypothetical file system! #772 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rollup-plugin-includepaths.