Skip to content

Commit 0a7343b

Browse files
author
aFarkas
committed
add commonjs support + fix main property in package.json (see #178)
1 parent 5a8a9a9 commit 0a7343b

File tree

7 files changed

+29
-13
lines changed

7 files changed

+29
-13
lines changed

dist/html5shiv-printshiv.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
2+
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
33
*/
44
;(function(window, document) {
55
/*jshint evil:true */
66
/** version */
7-
var version = '3.7.2';
7+
var version = '3.7.3-pre';
88

99
/** Preset options */
1010
var options = window.html5 || {};
@@ -517,4 +517,8 @@
517517
// shiv for print
518518
shivPrint(document);
519519

520+
if(typeof module == 'object' && module.exports){
521+
module.exports = lazySizes;
522+
}
523+
520524
}(typeof window !== "undefined" ? window : this, document));

dist/html5shiv-printshiv.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/html5shiv.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
2+
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
33
*/
44
;(function(window, document) {
55
/*jshint evil:true */
66
/** version */
7-
var version = '3.7.2';
7+
var version = '3.7.3-pre';
88

99
/** Preset options */
1010
var options = window.html5 || {};
@@ -319,4 +319,8 @@
319319
// shiv the document
320320
shivDocument(document);
321321

322+
if(typeof module == 'object' && module.exports){
323+
module.exports = lazySizes;
324+
}
325+
322326
}(typeof window !== "undefined" ? window : this, document));

dist/html5shiv.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"url": "https://github.com/aFarkas/html5shiv.git"
77
},
8-
"main": "dist/",
8+
"main": "dist/html5shiv.js",
99
"devDependencies": {
1010
"grunt-bytesize": ">=0.1.0",
1111
"grunt-contrib-watch": ">=0.3.0",

src/html5shiv-printshiv.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
2+
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
33
*/
44
;(function(window, document) {
55
/*jshint evil:true */
66
/** version */
7-
var version = '3.7.2';
7+
var version = '3.7.3-pre';
88

99
/** Preset options */
1010
var options = window.html5 || {};
@@ -517,4 +517,8 @@
517517
// shiv for print
518518
shivPrint(document);
519519

520+
if(typeof module == 'object' && module.exports){
521+
module.exports = lazySizes;
522+
}
523+
520524
}(typeof window !== "undefined" ? window : this, document));

src/html5shiv.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
2+
* @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
33
*/
44
;(function(window, document) {
55
/*jshint evil:true */
66
/** version */
7-
var version = '3.7.2';
7+
var version = '3.7.3-pre';
88

99
/** Preset options */
1010
var options = window.html5 || {};
@@ -319,4 +319,8 @@
319319
// shiv the document
320320
shivDocument(document);
321321

322+
if(typeof module == 'object' && module.exports){
323+
module.exports = lazySizes;
324+
}
325+
322326
}(typeof window !== "undefined" ? window : this, document));

0 commit comments

Comments
 (0)