esperanto-source 0.6.18 → 0.6.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/esperanto/source/version.rb +1 -1
- data/vendor/esperanto.browser.js +1 -1
- data/vendor/esperanto.js +11 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b7f099e3d850a4dde0d263dbd2380ab66d4f66
|
4
|
+
data.tar.gz: 36e14027896978e62b317300bd5c4f20f9eebd36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dff115dbba50860cdaaab2b3a5ddde4d77ee1de82bfd0d156f6c3799fa4169fb34679d730bf70e41e8c96d0b85602422dd25670174eea775510ba6d619b2ff25
|
7
|
+
data.tar.gz: 20bb8e09bd1f24fb5e0a559fa5c28389fd9af6c04cbabd21091bf08d07dceeb7d06c9877e1826a2ce00d11b8872b220ef05c08fcb894e6edeb2125c7e55ce3e9
|
data/vendor/esperanto.browser.js
CHANGED
data/vendor/esperanto.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
esperanto.js v0.6.
|
2
|
+
esperanto.js v0.6.19 - 2015-03-30
|
3
3
|
http://esperantojs.org
|
4
4
|
|
5
5
|
Released under the MIT License.
|
@@ -1400,12 +1400,21 @@ function getModule ( mod ) {var $D$1;
|
|
1400
1400
|
|
1401
1401
|
mod.body = new MagicString( mod.source );
|
1402
1402
|
|
1403
|
+
var toRemove = [];
|
1404
|
+
|
1403
1405
|
try {
|
1404
1406
|
mod.ast = acorn.parse( mod.source, {
|
1405
1407
|
ecmaVersion: 6,
|
1406
|
-
sourceType: 'module'
|
1408
|
+
sourceType: 'module',
|
1409
|
+
onComment: function ( block, text, start, end ) {
|
1410
|
+
// sourceMappingURL comments should be removed
|
1411
|
+
if ( !block && /^# sourceMappingURL=/.test( text ) ) {
|
1412
|
+
toRemove.push({ start: start, end: end });
|
1413
|
+
}
|
1414
|
+
}
|
1407
1415
|
});
|
1408
1416
|
|
1417
|
+
toRemove.forEach( function(end) {var start = end.start, end = end.end;return mod.body.remove( start, end )} );
|
1409
1418
|
annotateAst( mod.ast );
|
1410
1419
|
} catch ( err ) {
|
1411
1420
|
// If there's a parse error, attach file info
|