From 66f04e6271430133a82822b8cd7394022b8db328 Mon Sep 17 00:00:00 2001 From: ctaepper Date: Thu, 23 Jun 2016 22:19:44 +0200 Subject: [PATCH 1/3] refactor(module): add commonjs compliance --- index.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..078ae1f --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +require('./dist/ocLazyLoad.js'); +module.exports = 'oc.lazyLoad'; From a635a63adaa7ab6e3f38ad867f3db585da9c07a1 Mon Sep 17 00:00:00 2001 From: ctaepper Date: Thu, 23 Jun 2016 22:21:54 +0200 Subject: [PATCH 2/3] refactor(module): add commonjs compliance --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 81e13e5..de68b52 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "oclazyload", "version": "1.0.9", "description": "Load modules on demand (lazy load) with angularJS", - "main": "dist/ocLazyLoad.js", + "main": "index.js "author": "Olivier Combe ", "license": "MIT", "homepage": "https://github.com/ocombe/ocLazyLoad", @@ -57,4 +57,4 @@ "semver": "~4.3.6", "streamqueue": "~0.1.3" } -} \ No newline at end of file +} From cde8c71e41af38e0226345b941957a6aaeaedfb9 Mon Sep 17 00:00:00 2001 From: ctaepper Date: Thu, 23 Jun 2016 22:22:05 +0200 Subject: [PATCH 3/3] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index de68b52..aa091a0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "oclazyload", "version": "1.0.9", "description": "Load modules on demand (lazy load) with angularJS", - "main": "index.js + "main": "index.js", "author": "Olivier Combe ", "license": "MIT", "homepage": "https://github.com/ocombe/ocLazyLoad",