File tree 3 files changed +0
-16
lines changed
3 files changed +0
-16
lines changed Original file line number Diff line number Diff line change 9
9
10
10
hook ( 'fetch' , function ( fetch ) {
11
11
return function ( load ) {
12
- if ( load . metadata . format === 'amd'
13
- && ! load . metadata . authorization
14
- && load . metadata . scriptLoad !== false )
15
- load . metadata . scriptLoad = true ;
16
12
// script load implies define global leak
17
13
if ( load . metadata . scriptLoad && isBrowser )
18
14
this . get ( '@@amd-helpers' ) . createDefine ( ) ;
Original file line number Diff line number Diff line change @@ -14,15 +14,6 @@ hook('fetch', function(fetch) {
14
14
return function ( load ) {
15
15
if ( load . metadata . exports && ! load . metadata . format )
16
16
load . metadata . format = 'global' ;
17
-
18
- // A global with exports, no globals and no deps
19
- // can be loaded via a script tag
20
- if ( load . metadata . format == 'global' && ! load . metadata . authorization
21
- && load . metadata . exports && ! load . metadata . globals
22
- && ( ! load . metadata . deps || load . metadata . deps . length == 0 )
23
- && load . metadata . scriptLoad !== false )
24
- load . metadata . scriptLoad = true ;
25
-
26
17
return fetch . call ( this , load ) ;
27
18
} ;
28
19
} ) ;
Original file line number Diff line number Diff line change @@ -473,9 +473,6 @@ function createEntry() {
473
473
load . metadata . format = 'defined' ;
474
474
return '' ;
475
475
}
476
-
477
- if ( load . metadata . format == 'register' && ! load . metadata . authorization && load . metadata . scriptLoad !== false )
478
- load . metadata . scriptLoad = true ;
479
476
480
477
load . metadata . deps = load . metadata . deps || [ ] ;
481
478
You can’t perform that action at this time.
0 commit comments