mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
update Svelte and fix Windows build
Svelte 3.25.0 and onwards bundle compiler.mjs, which seems to be preferentially used over the .js file. Presumably this is only breaking on Windows due to the lack of a sandbox. Resolve by explicitly requesting the .js file.
This commit is contained in:
parent
06b0b4d68b
commit
7ae6837cfa
3 changed files with 6 additions and 7 deletions
|
|
@ -42,7 +42,7 @@
|
|||
"rollup-plugin-terser": "^7.0.2",
|
||||
"sass": "^1.32.6",
|
||||
"semver": "^7.3.4",
|
||||
"svelte": "=3.24.1",
|
||||
"svelte": "^3.25.0",
|
||||
"svelte-check": "^1.0.61",
|
||||
"svelte-preprocess": "^4.6.9",
|
||||
"svelte2tsx": "^0.1.133",
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@ const input = process.argv[2];
|
|||
const outputJs = process.argv[3];
|
||||
const temp = process.argv[4];
|
||||
|
||||
|
||||
const svelte = require("svelte/compiler");
|
||||
const svelte = require("svelte/compiler.js");
|
||||
|
||||
const source = fs.readFileSync(input, "utf8");
|
||||
|
||||
|
|
|
|||
|
|
@ -2368,10 +2368,10 @@ svelte2tsx@^0.1.133:
|
|||
dedent-js "^1.0.1"
|
||||
pascal-case "^3.1.1"
|
||||
|
||||
svelte@=3.24.1:
|
||||
version "3.24.1"
|
||||
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.24.1.tgz#aca364937dd1df27fe131e2a4c234acb6061db4b"
|
||||
integrity sha512-OX/IBVUJSFo1rnznXdwf9rv6LReJ3qQ0PwRjj76vfUWyTfbHbR9OXqJBnUrpjyis2dwYcbT2Zm1DFjOOF1ZbbQ==
|
||||
svelte@^3.25.0:
|
||||
version "3.35.0"
|
||||
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.35.0.tgz#e0d0ba60c4852181c2b4fd851194be6fda493e65"
|
||||
integrity sha512-gknlZkR2sXheu/X+B7dDImwANVvK1R0QGQLd8CNIfxxGPeXBmePnxfzb6fWwTQRsYQG7lYkZXvpXJvxvpsoB7g==
|
||||
|
||||
table@^5.2.3:
|
||||
version "5.4.6"
|
||||
|
|
|
|||
Loading…
Reference in a new issue