Skip to content

Commit 91cff35

Browse files
committed
fix: svelte template
1 parent f374c3e commit 91cff35

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

packages/template-blank-svelte/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "app/app.ts",
44
"displayName": "Blank Svelte",
55
"templateType": "App template",
6-
"version": "9.0.0",
6+
"version": "9.0.1",
77
"description": "Blank template for NativeScript apps using Svelte",
88
"author": "NativeScript Team <[email protected]>",
99
"license": "Apache-2.0",
@@ -42,16 +42,20 @@
4242
"url": "https://github.com/NativeScript/NativeScript/issues"
4343
},
4444
"dependencies": {
45-
"@nativescript-community/svelte-native": "~1.0.29",
45+
"@nativescript-community/svelte-native": "~1.0.30",
4646
"@nativescript/core": "~9.0.0"
4747
},
4848
"devDependencies": {
4949
"@nativescript-community/svelte-native-preprocessor": "^1.0.1",
5050
"@nativescript/types": "~9.0.0",
51-
"@nativescript/webpack": "~5.0.25",
51+
"@nativescript/webpack": "~5.0.28",
5252
"svelte": "~4.2.20",
5353
"svelte-loader": "^3.2.4",
5454
"svelte-preprocess": "^6.0.3",
5555
"typescript": "~5.9.2"
56+
},
57+
"overrides": {
58+
"@nativescript/core": "^9.0.0",
59+
"svelte": "~4.2.0"
5660
}
5761
}

packages/template-blank-svelte/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"compilerOptions": {
33
"strict": true,
4-
"target": "ES2020",
4+
"target": "esnext",
55
"module": "esnext",
66
"moduleResolution": "bundler",
7-
"lib": ["dom", "ESNext"],
7+
"lib": ["WebWorker", "ESNext"],
88
"sourceMap": true,
99
"noEmitHelpers": true,
1010
"importHelpers": true,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const webpack = require('@nativescript/webpack')
2+
3+
module.exports = (env) => {
4+
webpack.init(env)
5+
6+
// Learn how to customize:
7+
// https://docs.nativescript.org/webpack
8+
webpack.mergeWebpack({
9+
resolve: {
10+
conditionNames: ['svelte', 'require', 'node'],
11+
alias: {
12+
tslib: require.resolve('tslib/tslib.es6.mjs'),
13+
},
14+
},
15+
})
16+
17+
return webpack.resolveConfig()
18+
}

0 commit comments

Comments
 (0)