Skip to content

Commit 83ce6c7

Browse files
committed
- scope script properly
- bump version
1 parent c2b649f commit 83ce6c7

8 files changed

Lines changed: 20 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Logs
22

3+
## v4.1.2
4+
5+
- scope script properly
6+
7+
38
## v4.1.1
49

510
- add missing `ns` in cache / id parser

build

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ cat .built/index.js >> dist/node.js
1414
cat .built/bundle.js >> dist/node.js
1515
cat .built/foot.js >> dist/node.js
1616

17-
cat .built/index.js > dist/index.js
17+
echo "(function(){" > dist/index.js
18+
cat .built/index.js >> dist/index.js
1819
cat .built/foot.js >> dist/index.js
20+
echo "}())" >> dist/index.js
1921

20-
cat .built/index.js > dist/bundle.js
22+
echo "(function(){" > dist/bundle.js
23+
cat .built/index.js >> dist/bundle.js
2124
cat .built/bundle.js >> dist/bundle.js
2225
cat .built/foot.js >> dist/bundle.js
26+
echo "}())" >> dist/bundle.js
2327

2428
echo "minify dist/index.js -> index.min.js ..."
2529
./node_modules/.bin/uglifyjs dist/index.js -m -c > dist/index.min.js

dist/bundle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
(function(){
12
var win, doc, isScope, _fetch, csp, slice$ = [].slice;
23
isScope = function(it){
34
return /^:scope[ .:\[#]|^:scope$/.exec(it);
@@ -433,4 +434,4 @@ function in$(x, xs){
433434
module.exports = csp;
434435
} else if (typeof window != 'undefined' && window !== null) {
435436
window.csscope = csp;
436-
}
437+
}}())

dist/bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
(function(){
12
var win, doc, isScope, _fetch, csp, slice$ = [].slice;
23
isScope = function(it){
34
return /^:scope[ .:\[#]|^:scope$/.exec(it);
@@ -409,4 +410,4 @@ function in$(x, xs){
409410
module.exports = csp;
410411
} else if (typeof window != 'undefined' && window !== null) {
411412
window.csscope = csp;
412-
}
413+
}}())

0 commit comments

Comments
 (0)