Coder Social home page Coder Social logo

fresh-require's People

Contributors

hughsk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fresh-require's Issues

What is the status of this project?

#Hi this is a great idea but Im struggling to get this to work with the latest browserify.What version of browserify is v1.0.3 compatible with. I have tried browserify v6.2.0 as listed in package.json, but still having problems.

Can't make it work with browserify

Hi!

I want to use your module to test Flux stores (React). I need to reload stores on every test so your module would be helpful. I'm trying to make it work with karma and browserify but I get an error:

Uncaught TypeError: Cannot read property 'arguments' of null

The script fails on this line:

var $0 = arguments.length === 3 ? arguments.callee.caller : arguments.callee.caller.caller, $1 = (arguments.length === 3 ? arguments.callee.caller : arguments.callee.caller.caller).arguments[0];

My karma settings:

    browserify: {
      debug: true,
      transform: [['fresh-require/transform']],
      extensions: ['.js', '.json', '.es6']
    },

The script I use:

var fresh = require('fresh-require')

var async1 = require('async')
var async2 = fresh('async', require)

console.log('async1 === async2', async1 === async2);

I also tried to transform it on command line with browserify -t fresh-require/transform -o bundle.js ./test.js but got another error:

Uncaught TypeError: Cannot read property '1' of undefined

The error happens here

Am I missing something?

Thanks!

Add travis for tests.

I'd like to use this module but we can't use any module that doesn't have passing CI. Can you add travis?

Error: TypeError when using with browserify

When I try to run the created bundle js I'm getting the following error:

TypeError: 'undefined' is not an object (evaluating 'sources[name][1]')

It seems that sources[names] is undefined. It looks like that your bugfix doesn't solved the problem.

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.