Skip to content

Commit

Permalink
add commonjs support + fix main property in package.json (see #178)
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Mar 10, 2015
1 parent 5a8a9a9 commit 0a7343b
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 13 deletions.
8 changes: 6 additions & 2 deletions dist/html5shiv-printshiv.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
;(function(window, document) {
/*jshint evil:true */
/** version */
var version = '3.7.2';
var version = '3.7.3-pre';

/** Preset options */
var options = window.html5 || {};
Expand Down Expand Up @@ -517,4 +517,8 @@
// shiv for print
shivPrint(document);

if(typeof module == 'object' && module.exports){
module.exports = lazySizes;
}

}(typeof window !== "undefined" ? window : this, document));
4 changes: 2 additions & 2 deletions dist/html5shiv-printshiv.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions dist/html5shiv.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
;(function(window, document) {
/*jshint evil:true */
/** version */
var version = '3.7.2';
var version = '3.7.3-pre';

/** Preset options */
var options = window.html5 || {};
Expand Down Expand Up @@ -319,4 +319,8 @@
// shiv the document
shivDocument(document);

if(typeof module == 'object' && module.exports){
module.exports = lazySizes;
}

}(typeof window !== "undefined" ? window : this, document));
4 changes: 2 additions & 2 deletions dist/html5shiv.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "git",
"url": "https://github.com/aFarkas/html5shiv.git"
},
"main": "dist/",
"main": "dist/html5shiv.js",
"devDependencies": {
"grunt-bytesize": ">=0.1.0",
"grunt-contrib-watch": ">=0.3.0",
Expand Down
8 changes: 6 additions & 2 deletions src/html5shiv-printshiv.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
;(function(window, document) {
/*jshint evil:true */
/** version */
var version = '3.7.2';
var version = '3.7.3-pre';

/** Preset options */
var options = window.html5 || {};
Expand Down Expand Up @@ -517,4 +517,8 @@
// shiv for print
shivPrint(document);

if(typeof module == 'object' && module.exports){
module.exports = lazySizes;
}

}(typeof window !== "undefined" ? window : this, document));
8 changes: 6 additions & 2 deletions src/html5shiv.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
;(function(window, document) {
/*jshint evil:true */
/** version */
var version = '3.7.2';
var version = '3.7.3-pre';

/** Preset options */
var options = window.html5 || {};
Expand Down Expand Up @@ -319,4 +319,8 @@
// shiv the document
shivDocument(document);

if(typeof module == 'object' && module.exports){
module.exports = lazySizes;
}

}(typeof window !== "undefined" ? window : this, document));

0 comments on commit 0a7343b

Please sign in to comment.