Coder Social home page Coder Social logo

gobble-rollup's People

Contributors

cprecioso avatar ivansanchez avatar rich-harris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

cprecioso

gobble-rollup's Issues

Bump please :-)

Rollup 0.12 has some nice new features, I would love to use them with gobble.

Rollup can't find node_modules when run via gobble

May be a rollup issue, but thought I'd start here.

Best I can tell the isExternal function doesn't work correctly and plugins never get called. I noticed options.external and tried some stuff out, but over my head figuring out how that iteracts with calling plugins.

Output looks like:

input:  /Users/marty/rollup-rxjs/.gobble-build/01-include/1
output: /Users/marty/rollup-rxjs/.gobble-build/02-rollup/1
>>>
Cannot find module 'rxjs/Observable' from '/Users/marty/rollup-rxjs/.gobble-build/01-include/1'
Error: Cannot find module 'rxjs/Observable' from '/Users/marty/rollup-rxjs/.gobble-build/01-include/1'

Here's branch with simple example project I'm hacking on to try this.

Sourcemaps containing '..' generated, won't work in firefox

Imagine a gobble workflow which rolls up some files like these:

/home/ivan/projects/wonderfulweb/src/something.js
/home/ivan/projects/wonderfulweb/src/utils.js
...etc

Into this:

/home/ivan/projects/wonderfulweb/.gobble/31-merge/1/bundle.js
/home/ivan/projects/wonderfulweb/.gobble/31-merge/1/bundle.js.map

In cases like this, bundle.js.map is using relative sources, it looks like:

{"version":3,"sources":["../../../src/something.js","../../../src/utils.js", ...etc...

Any source path containing .. will make it useless in Firefox, and Error loading source: loadSourceError will be shown in the developer console (the only real symptom visible). Chrome works around ..s by silently dropping them. I haven't really tried any other browsers.

Ideally, filename paths in the rollup sourcemap should be relative to the location of the gobblefile.js, and not relative to the bundled file.

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.