File tree Expand file tree Collapse file tree 5 files changed +67
-26
lines changed
template-blank-svelte-vision Expand file tree Collapse file tree 5 files changed +67
-26
lines changed Original file line number Diff line number Diff line change 39
39
"url" : " https://github.com/NativeScript/NativeScript/issues"
40
40
},
41
41
"dependencies" : {
42
- "@nativescript/core " : " ~8.9.0 " ,
43
- "@nativescript-community/svelte-native " : " ~1.0.29 "
42
+ "@nativescript-community/svelte-native " : " ~1.0.29 " ,
43
+ "@nativescript/core " : " ~8.9.9 "
44
44
},
45
45
"devDependencies" : {
46
- "@nativescript/types " : " ~8.9.0 " ,
47
- "@nativescript/webpack " : " ~5.0.0 " ,
48
- "svelte " : " ~4.2.2 " ,
49
- "svelte-loader " : " ^3 .2.0 " ,
50
- "svelte-native-preprocessor " : " ^1.0.0 " ,
51
- "svelte-preprocess" : " ^5.1 .3" ,
52
- "typescript" : " ~5.7.0 "
46
+ "@nativescript-community/svelte-native-preprocessor " : " ^1.0.1 " ,
47
+ "@nativescript/types " : " ~8.9.1 " ,
48
+ "@nativescript/webpack " : " ~5.0.24 " ,
49
+ "svelte" : " ~4 .2.20 " ,
50
+ "svelte-loader " : " ^3.2.4 " ,
51
+ "svelte-preprocess" : " ^6.0 .3" ,
52
+ "typescript" : " ~5.9.2 "
53
53
}
54
54
}
Original file line number Diff line number Diff line change 1
1
const sveltePreprocess = require ( 'svelte-preprocess' )
2
- const svelteNativePreprocessor = require ( 'svelte-native-preprocessor' )
2
+ const svelteNativePreprocessor = require ( '@nativescript-community/ svelte-native-preprocessor' )
3
3
4
+ // this can be called either through svelte-loader where we want either __ANDROID__ or __IOS__ to be defined but not both
5
+ // or through svelte-check where we want both so everything is checked
6
+ const webpack_env = process . env [ 'NATIVESCRIPT_WEBPACK_ENV' ]
7
+ ? JSON . parse ( process . env [ 'NATIVESCRIPT_WEBPACK_ENV' ] )
8
+ : {
9
+ android : true ,
10
+ ios : true
11
+ } ;
4
12
module . exports = {
5
13
compilerOptions : {
6
14
namespace : "foreign"
7
15
} ,
8
- preprocess : [ sveltePreprocess ( ) , svelteNativePreprocessor ( ) ]
16
+ preprocess : [ sveltePreprocess ( {
17
+ replace : [
18
+ [ / _ _ A N D R O I D _ _ / g, ! ! webpack_env . android ] ,
19
+ [ / _ _ I O S _ _ / g, ! ! webpack_env . ios ]
20
+ ] ,
21
+ typescript : {
22
+ compilerOptions : {
23
+ verbatimModuleSyntax : true ,
24
+ target : 'es2020'
25
+ }
26
+ }
27
+ } ) ,
28
+ // if you want bind:text="{email}" to be transformed to text="{email}" on:textChanged="{e => email = e.value}"
29
+ // enable svelteNativePreprocessor. Keep in mind that it is pretty slow
30
+ /* svelteNativePreprocessor() */ ]
9
31
}
Original file line number Diff line number Diff line change 1
- @import '@nativescript/theme/css/core.css' ;
2
- @import '@nativescript/theme/css/default.css' ;
3
-
1
+
4
2
.fab {
5
3
font-family : 'Font Awesome 5 Brands' , 'fa-brands-400' ;
6
4
font-weight : 400 ;
Original file line number Diff line number Diff line change 42
42
"url" : " https://github.com/NativeScript/NativeScript/issues"
43
43
},
44
44
"dependencies" : {
45
- "@nativescript/core" : " ~8.9.0" ,
46
- "@nativescript/theme" : " ^3.1.0" ,
47
- "@nativescript-community/svelte-native" : " ~1.0.29"
45
+ "@nativescript-community/svelte-native" : " ~1.0.29" ,
46
+ "@nativescript/core" : " 8.9.7"
48
47
},
49
48
"devDependencies" : {
50
- "@nativescript/types " : " ~8.9.0 " ,
51
- "@nativescript/webpack " : " ~5.0.0 " ,
52
- "svelte " : " ~4.2.2 " ,
53
- "svelte-loader " : " ^3.1.9 " ,
54
- "svelte-native-preprocessor " : " ^1.0.0 " ,
55
- "svelte-preprocess" : " ^5 .0.4 " ,
56
- "typescript" : " ~5.7.0 "
49
+ "@nativescript-community/svelte-native-preprocessor " : " ^1.0.1 " ,
50
+ "@nativescript/types " : " ~8.9.1 " ,
51
+ "@nativescript/webpack " : " ~5.0.24 " ,
52
+ "svelte" : " ~4.2.20 " ,
53
+ "svelte-loader " : " ^3.2.4 " ,
54
+ "svelte-preprocess" : " ^6 .0.3 " ,
55
+ "typescript" : " ~5.9.2 "
57
56
}
58
57
}
Original file line number Diff line number Diff line change 1
1
const sveltePreprocess = require ( 'svelte-preprocess' )
2
- const svelteNativePreprocessor = require ( 'svelte-native-preprocessor' )
2
+ const svelteNativePreprocessor = require ( '@nativescript-community/ svelte-native-preprocessor' )
3
3
4
+ // this can be called either through svelte-loader where we want either __ANDROID__ or __IOS__ to be defined but not both
5
+ // or through svelte-check where we want both so everything is checked
6
+ const webpack_env = process . env [ 'NATIVESCRIPT_WEBPACK_ENV' ]
7
+ ? JSON . parse ( process . env [ 'NATIVESCRIPT_WEBPACK_ENV' ] )
8
+ : {
9
+ android : true ,
10
+ ios : true
11
+ } ;
4
12
module . exports = {
5
13
compilerOptions : {
6
14
namespace : "foreign"
7
15
} ,
8
- preprocess : [ sveltePreprocess ( ) , svelteNativePreprocessor ( ) ]
16
+ preprocess : [ sveltePreprocess ( {
17
+ replace : [
18
+ [ / _ _ A N D R O I D _ _ / g, ! ! webpack_env . android ] ,
19
+ [ / _ _ I O S _ _ / g, ! ! webpack_env . ios ]
20
+ ] ,
21
+ typescript : {
22
+ compilerOptions : {
23
+ verbatimModuleSyntax : true ,
24
+ target : 'es2020'
25
+ }
26
+ }
27
+ } ) ,
28
+ // if you want bind:text="{email}" to be transformed to text="{email}" on:textChanged="{e => email = e.value}"
29
+ // enable svelteNativePreprocessor. Keep in mind that it is pretty slow
30
+ /* svelteNativePreprocessor() */ ]
9
31
}
You can’t perform that action at this time.
0 commit comments