File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
packages/repl/src/lib/workers/bundler Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -160,29 +160,6 @@ async function follow_redirects(url: string, uid: number) {
160
160
return res ?. url ;
161
161
}
162
162
163
- function compare_to_version ( major : number , minor : number , patch : number ) : number {
164
- const v = svelte . VERSION . match ( / ^ ( \d + ) \. ( \d + ) \. ( \d + ) / ) ;
165
-
166
- // @ts -ignore
167
- return + v [ 1 ] - major || + v [ 2 ] - minor || + v [ 3 ] - patch ;
168
- }
169
-
170
- function is_v4 ( ) {
171
- return compare_to_version ( 4 , 0 , 0 ) >= 0 ;
172
- }
173
-
174
- function is_v5 ( ) {
175
- return compare_to_version ( 5 , 0 , 0 ) >= 0 ;
176
- }
177
-
178
- function is_legacy_package_structure ( ) {
179
- return compare_to_version ( 3 , 4 , 4 ) <= 0 ;
180
- }
181
-
182
- function has_loopGuardTimeout_feature ( ) {
183
- return compare_to_version ( 3 , 14 , 0 ) >= 0 ;
184
- }
185
-
186
163
async function resolve_from_pkg (
187
164
pkg : Record < string , unknown > ,
188
165
subpath : string ,
You can’t perform that action at this time.
0 commit comments