Skip to content

Commit

Permalink
Run es3ify over unminified builds
Browse files Browse the repository at this point in the history
Makes no difference to react.js and react-with-addons.js; quotes .static in four
places for JSXTransformer.js:

https://gist.github.com/spicyj/aada5352e813752a4667
  • Loading branch information
sophiebits committed Feb 16, 2014
1 parent e872cd0 commit e87c8a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions grunt/config/browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
'use strict';

var envify = require('envify/custom');
var es3ify = require('es3ify');
var grunt = require('grunt');
var UglifyJS = require('uglify-js');
var uglifyify = require('uglifyify');
Expand Down Expand Up @@ -63,7 +64,7 @@ var basic = {
debug: false,
standalone: 'React',
transforms: [envify({NODE_ENV: 'development'})],
after: [simpleBannerify]
after: [es3ify.transform, simpleBannerify]
};

var min = _.merge({}, basic, {
Expand All @@ -80,7 +81,7 @@ var transformer = {
outfile: './build/JSXTransformer.js',
debug: false,
standalone: 'JSXTransformer',
after: [simpleBannerify]
after: [es3ify.transform, simpleBannerify]
};

var addons = {
Expand All @@ -92,7 +93,7 @@ var addons = {
standalone: 'React',
transforms: [envify({NODE_ENV: 'development'})],
packageName: 'React (with addons)',
after: [simpleBannerify]
after: [es3ify.transform, simpleBannerify]
};

var addonsMin = _.merge({}, addons, {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"browserify": "~3.20.0",
"coverify": "~1.0.4",
"envify": "~1.0.1",
"es3ify": "~0.1.2",
"es5-shim": "~2.3.0",
"grunt": "~0.4.2",
"grunt-cli": "~0.1.9",
Expand Down

0 comments on commit e87c8a2

Please sign in to comment.