Comments (8)
@MilllerTime @dbartel ill address this sooner rather than later - in the midst of reworking the build system of my projects to use webpack2 instead of rollup. Rollups treeshaking and scope collapsing will be coming to webpack2 soon - these differences were the reason I originally chose it over webpack.
Thank you both for your patience, and for hashing out a fix here and in the PR. will update and close this issue when I've made the changes.
from jump.js.
Ran into this problem on something I was working on, turned out to be not too painful to fix. Made a pull request here #47
from jump.js.
Looks excellent @dbartel! I didn't know babel config could live in package.json - good to know. I definitely appreciate the effort, hopefully it can be merged soon 👍
from jump.js.
@MilllerTime turns out you also need to move es2015-rollup out of devDependencies to dependencies in package.json for npm to build this correctly - I had tested this just by copying the built file over instead of pulling it down from npm - the latest commit I pushed will fix this
If you need to use this change, you can pull down a specific commit for an npm module like this:
{
"jump.js": "dbartel/jump.js#5a41ea2f9b5caaab4e958b19a0a4e30bf9386d61"
}
Keep in mind this locks you to this specific forked off commit, so moving to an updated jump.js in the future could be a hassle.
from jump.js.
Hmm. So now any user installing jump.js will have es2015-rollup
added to their package.json
? If rollup is only needed to build the project, it seems like a nonessential dependency. I'm able to compile the jump.js module as a part of my project without rollup, alternatively using webpack. I don't really want rollup to be included in my dependencies just because of this library. Is there a way to avoid the errors I showed above, while keeping es2015-rollup
as a devDependency?
Edit:
For example, babel-loader for webpack allows specifying config inline via the query
property: https://github.com/babel/babel-loader#usage. If something like this exists for rollup (my searching turned up nothing), it seems to me that it would resolve the issue.
from jump.js.
@MilllerTime @dbartel updated the dist files in the latest release - shouldn't be any problems with imports anymore. sorry this took so long
from jump.js.
Awesome, no more errors here. Thank you for resolving this!
from jump.js.
@MilllerTime no problemo, thanks for confirming the fix. sorry it took me forever.
from jump.js.
Related Issues (20)
- Function not found due to wrong path HOT 8
- No module export HOT 3
- It is a nightmare to use this with my angular 2 application using system js for bundling HOT 1
- Sometimes callback executing before scrolling has finished HOT 1
- prevent calling jump() when current jump is not finished
- Is it possible to use Jump to replace the default behavior for the anchors? HOT 1
- Feature Request: Make target optional HOT 1
- Document why tabindex is necessary when a11y: true HOT 4
- Option to prevent anchor from beeing added to the URL? HOT 1
- Error in case of jumping to non-existing target HOT 1
- Bug in Chrome With Small Viewports -- Jump Effect with Flicker and Ignoring Offset HOT 2
- Scrolling Breaks When CSS Has Overflow. HOT 1
- Prevent jumping when position is the same
- MIT Licence not assigned on GH HOT 1
- Can we use GSAP Easings with Jump.js ? HOT 2
- Doesn't work with gulp? HOT 1
- Help needed with angular
- An old scholl version, really.. HOT 2
- Can't scroll back up the page
- Lazy loading images
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 jump.js.