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:
Damien Elmes 2021-03-20 16:09:37 +10:00
parent ea7611d8cc
commit e60eb27184
3 changed files with 6 additions and 7 deletions

View file

@ -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",

View file

@ -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");

View file

@ -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"