Skip to content

Commit 341ae00

Browse files
committed
chore(dist): updating distributables to version 0.11.0-beta.1
1 parent ff51bc1 commit 341ae00

File tree

7 files changed

+48
-94
lines changed

7 files changed

+48
-94
lines changed

dist/file-size.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
22
"dist/sass.js": {
3-
"normal": "5 KB",
3+
"normal": "6 KB",
44
"compressed": "2 KB"
55
},
66
"dist/sass.sync.js": {
7-
"normal": "3527 KB",
8-
"compressed": "739 KB"
7+
"normal": "358 KB",
8+
"compressed": "80 KB"
99
},
1010
"dist/sass.worker.js": {
11-
"normal": "3527 KB",
12-
"compressed": "739 KB"
11+
"normal": "357 KB",
12+
"compressed": "80 KB"
13+
},
14+
"dist/libsass.wasm": {
15+
"normal": "1701 KB",
16+
"compressed": "522 KB"
1317
}
1418
}

dist/libsass.wasm

1.66 MB
Binary file not shown.

dist/sass.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! sass.js - v0.10.9 (3e41106) - built 2018-02-06
1+
/*! sass.js - v0.11.0-beta.1 (ff51bc1) - built 2018-02-06
22
providing libsass 3.4.9 (6de5050d)
33
via emscripten 1.37.33 ()
44
*/
@@ -12,22 +12,33 @@
1212
} else {
1313
root.Sass = factory();
1414
}
15-
}(this, function () {/*global document*/
15+
}(this, function () {/*global document, location, SASSJS_RELATIVE_PATH*/
1616
// identify the path sass.js is located at in case we're loaded by a simple
1717
// <script src="path/to/sass.js"></script>
1818
// this path can be used to identify the location of
1919
// * sass.worker.js from sass.js
2020
// * libsass.js.mem from sass.sync.js
2121
// see https://github.com/medialize/sass.js/pull/32#issuecomment-103142214
2222
// see https://github.com/medialize/sass.js/issues/33
23-
var SASSJS_RELATIVE_PATH = (function() {
23+
var _SASSJS_RELATIVE_PATH = typeof SASSJS_RELATIVE_PATH !== 'undefined' && SASSJS_RELATIVE_PATH
24+
var SASSJS_RELATIVE_PATH = _SASSJS_RELATIVE_PATH || (function() {
2425
'use strict';
2526

27+
var path = null;
28+
2629
// in Node things are rather simple
2730
if (typeof __dirname !== 'undefined') {
2831
return __dirname;
2932
}
3033

34+
// in a WebWorker we're always relative to the the worker itself
35+
if (typeof WorkerLocation !== 'undefined') {
36+
path = location.href;
37+
if (path.slice(-15) === '/sass.worker.js') {
38+
return path.slice(0, -15);
39+
}
40+
}
41+
3142
// we can only run this test in the browser,
3243
// so make sure we actually have a DOM to work with.
3344
if (typeof document === 'undefined' || !document.getElementsByTagName) {
@@ -40,7 +51,7 @@ var SASSJS_RELATIVE_PATH = (function() {
4051
return scripts[scripts.length - 1];
4152
})();
4253

43-
var path = currentScript && currentScript.src;
54+
path = currentScript && currentScript.src;
4455
if (!path) {
4556
return null;
4657
}

dist/sass.node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! sass.js - v0.10.9 (3e41106) - built 2018-02-06
1+
/*! sass.js - v0.11.0-beta.1 (ff51bc1) - built 2018-02-06
22
providing libsass 3.4.9 (6de5050d)
33
via emscripten 1.37.33 ()
44
*/

dist/sass.sync.js

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

dist/sass.worker.js

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

dist/versions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"commit": "6de5050d"
99
},
1010
"sassjs": {
11-
"version": "0.10.9",
12-
"commit": "3e41106",
13-
"branch": "upgrade-3.4.9"
11+
"version": "0.11.0-beta.1",
12+
"commit": "ff51bc1",
13+
"branch": "feature/wasm"
1414
}
1515
}

0 commit comments

Comments
 (0)