Skip to content

Commit f74f2af

Browse files
committed
feature #1385 Add support for Svelte 5 (Kocal)
This PR was squashed before being merged into the main branch. Discussion ---------- Add support for Svelte 5 | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes <!-- please update CHANGELOG.md file --> | Deprecations? | no <!-- please update CHANGELOG.md file --> | Issues | Fix #1384 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility. --> Commits ------- f4fcf4d Fix functional test on PostCSS/Autoprefixer fa91367 Add support for Svelte 5
2 parents 502acd6 + f4fcf4d commit f74f2af

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 5.3.0
4+
5+
* Add support for Svelte 5
6+
37
## 5.2.0
48

59
* Add support for Webpack CLI ^6.0.0

fixtures/js/hello_world.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
let name = 'world';
2+
let name = $state('world');
33
</script>
44

55
<h1>Hello {name}!</h1>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"strip-ansi": "^6.0.0",
9494
"stylus": "^0.63.0",
9595
"stylus-loader": "^7.0.0 || ^8.1.0",
96-
"svelte": "^3.50.0 || ^4.2.2",
96+
"svelte": "^3.50.0 || ^4.2.2 || ^5.0.0",
9797
"svelte-loader": "^3.1.0",
9898
"ts-loader": "^9.0.0",
9999
"typescript": "^5.0.0",

test/functional.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,9 @@ module.exports = {
10551055
`
10561056
);
10571057

1058+
// Force very old Safari to ensure that autoprefixer will prefix `backdrop-filter`
1059+
fs.writeFileSync(path.join(appDir, '.browserslistrc'), 'Safari 9');
1060+
10581061
const config = testSetup.createWebpackConfig(appDir, 'www/build', 'dev');
10591062
config.enableSingleRuntimeChunk();
10601063
config.setPublicPath('/build');

0 commit comments

Comments
 (0)