From 32c23ade427d6be26177c387b0fc2b5e3af55da1 Mon Sep 17 00:00:00 2001 From: eavichay Date: Wed, 4 Jan 2017 16:24:14 +0200 Subject: [PATCH] adding module exports --- Slim.js | 8 +++++++- bower.json | 2 +- example/FourInARow/index.html | 2 +- example/tests/bind-test.html | 8 +++++--- package.json | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Slim.js b/Slim.js index df23f84..b648f5e 100644 --- a/Slim.js +++ b/Slim.js @@ -440,4 +440,10 @@ class SlimRepeater extends Slim { } } Slim.tag('slim-repeat', SlimRepeater) -window.SlimRepeater = SlimRepeater \ No newline at end of file +window.SlimRepeater = SlimRepeater +window.Slim = Slim + +if (module && module.exports) { + module.exports.Slim = Slim + module.exports.SlimRepeater = SlimRepeater +} \ No newline at end of file diff --git a/bower.json b/bower.json index 911602b..f191cb8 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "slimjs", "main": "Slim.js", - "version": "2.2.0", + "version": "2.2.1", "ignore": [ "example", "components", diff --git a/example/FourInARow/index.html b/example/FourInARow/index.html index b9fc4bf..8e27237 100644 --- a/example/FourInARow/index.html +++ b/example/FourInARow/index.html @@ -8,7 +8,7 @@ && 'import' in document.createElement('link') && 'content' in document.createElement('template'))})()) { let s = "