mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -31,13 +31,6 @@ function ensureImageSource() {
|
||||
}
|
||||
}
|
||||
|
||||
let platform: typeof platformModule;
|
||||
function ensurePlatform() {
|
||||
if (!platform) {
|
||||
platform = require('../../platform');
|
||||
}
|
||||
}
|
||||
|
||||
let fs: typeof fsModule;
|
||||
function ensureFileSystem() {
|
||||
if (!fs) {
|
||||
@@ -205,8 +198,6 @@ function buildJavaOptions(options: httpModule.HttpRequestOptions) {
|
||||
javaOptions.headers = arrayList;
|
||||
}
|
||||
|
||||
ensurePlatform();
|
||||
|
||||
// pass the maximum available image size to the request options in case we need a bitmap conversion
|
||||
javaOptions.screenWidth = Screen.mainScreen.widthPixels;
|
||||
javaOptions.screenHeight = Screen.mainScreen.heightPixels;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"rootDir": "./",
|
||||
"types": ["node"],
|
||||
"plugins": [
|
||||
{ "transform": "../webpack/transformers/ns-transform-native-classes.ts", "type": "raw" }
|
||||
{ "transform": "../../../packages/webpack/transformers/ns-transform-native-classes.ts", "type": "raw" }
|
||||
]
|
||||
},
|
||||
"exclude": ["**/*.spec.ts", "dist", "__tests__"],
|
||||
|
||||
Reference in New Issue
Block a user