Skip to content

Commit

Permalink
chore: release 5.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Dec 12, 2023
1 parent 4ba875d commit 88f713c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/transformers/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -323,6 +324,7 @@ function getCompilerOptions({
'or replace them in favor of the new "verbatimModuleSyntax" flag.',
);
}

compilerOptions.ignoreDeprecations = '5.0';
}

Expand Down

0 comments on commit 88f713c

Please sign in to comment.