ericclemmons/grunt-react

bundle.js is no longer generated in grunt-react 0.12

sahat opened this issue · 5 comments

This code no longer works in grunt-react@0.12:

browserify: {
  options: {
    transform: [require('grunt-react').browserify]
  },
 client: {
    src: 'react/main.js',
    dest: 'static/js/bundle.js'
  }
}

It works fine in 0.10 and 0.11. Perhaps a bug in 0128961?

Update: Tested with the latest version of browserify.

Interesting! The tests broke when I updated dependencies (4616831), then I had to rewrite the transform (0128961) for them to pass again.

grunt-react/Gruntfile.js

Lines 26 to 35 in 73b41bf

// Used for testing the transformer
browserify: {
options: {
transform: [ require('./main').browserify ]
},
module: {
src: 'test/fixtures/browserify/module.jsx',
dest: 'tmp/browserify/module.js'
}
},

What version of Browserify are you using?

Hey @ericclemmons, I am using grunt-browserify 3.5.0, which uses browserify: ^9.0.3.

👍

Gave @apendua's cc2acf0 a try and can confirm that its does allow the browserify task to run as intended.

v0.12.1 is out with this fix, thanks to @apendua!