diff --git a/CHANGELOG.md b/CHANGELOG.md index 6abbb336..a08ba36a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ -## [5.1.1](https://github.com/sveltejs/svelte-preprocess/compare/v5.1.0...v5.1.1) (2023-11-21) - +## [5.1.2](https://github.com/sveltejs/svelte-preprocess/compare/v5.1.1...v5.1.2) (2023-12-12) -### Bug Fixes +- chore: mark postcss-load-config 5 as supported ([3b5b1f0](https://github.com/sveltejs/svelte-preprocess/commit/4ba875d1ab0e076e27509f33ba11c9b2f3b5b1f0)) -* force module(resolution) ([66d3cf9](https://github.com/sveltejs/svelte-preprocess/commit/66d3cf9a0cbc0eda84b98090bb8d9644b70eea00)) +## [5.1.1](https://github.com/sveltejs/svelte-preprocess/compare/v5.1.0...v5.1.1) (2023-11-21) +### Bug Fixes +- force module(resolution) ([66d3cf9](https://github.com/sveltejs/svelte-preprocess/commit/66d3cf9a0cbc0eda84b98090bb8d9644b70eea00)) # [5.1.0](https://github.com/sveltejs/svelte-preprocess/compare/v5.0.3...v5.1.0) (2023-11-10) diff --git a/package.json b/package.json index 69de2146..e69c9c4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svelte-preprocess", - "version": "5.1.1", + "version": "5.1.2", "license": "MIT", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -99,7 +99,7 @@ "coffeescript": "^2.5.1", "less": "^3.11.3 || ^4.0.0", "postcss": "^7 || ^8", - "postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0", + "postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", "pug": "^3.0.0", "sass": "^1.26.8", "stylus": "^0.55.0", diff --git a/src/transformers/typescript.ts b/src/transformers/typescript.ts index d82b496e..58d29f7b 100644 --- a/src/transformers/typescript.ts +++ b/src/transformers/typescript.ts @@ -150,6 +150,7 @@ function injectVarsToCode({ }): string { if (!markup) return content; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore different in Svelte 5 const { vars } = compile(stripTags(markup), { generate: false, @@ -323,6 +324,7 @@ function getCompilerOptions({ 'or replace them in favor of the new "verbatimModuleSyntax" flag.', ); } + compilerOptions.ignoreDeprecations = '5.0'; }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: