Skip to content

Commit e0212ca

Browse files
authored
Remove the svelte-preprocess dev dependency, keeping global styles with a custom Vite plugin (#4003)
* Remove the svelte-preprocess dev dependency, keeping global styles with a custom Vite plugin * More robust style tag detection * Fix CSS regressions
1 parent 55463fe commit e0212ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+99
-144
lines changed

frontend/package-lock.json

Lines changed: 0 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"sass": "^1.98.0",
4949
"svelte": "^5.54.1",
5050
"svelte-check": "^4.4.5",
51-
"svelte-preprocess": "^6.0.3",
5251
"tar": "^7.5.12",
5352
"typescript": "^5.9.3",
5453
"typescript-eslint": "^8.57.1",

frontend/src/components/Editor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
<MainWindow />
7777

78-
<style lang="scss" global>
78+
<style lang="scss">
7979
// Disable the spinning loading indicator
8080
body::before,
8181
body::after {

frontend/src/components/floating-menus/ColorPicker.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@
732732
</LayoutRow>
733733
</FloatingMenu>
734734

735-
<style lang="scss" global>
735+
<style lang="scss">
736736
.color-picker {
737737
--widget-height: 24px;
738738
--picker-size: 256px;

frontend/src/components/floating-menus/Dialog.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</LayoutRow>
7474
</FloatingMenu>
7575

76-
<style lang="scss" global>
76+
<style lang="scss">
7777
.dialog {
7878
position: absolute;
7979
pointer-events: none;

frontend/src/components/floating-menus/EyedropperPreview.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
</div>
6464
</FloatingMenu>
6565

66-
<style lang="scss" global>
66+
<style lang="scss">
6767
.eyedropper-preview {
6868
pointer-events: none;
6969

frontend/src/components/floating-menus/MenuList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@
560560
</LayoutCol>
561561
</FloatingMenu>
562562

563-
<style lang="scss" global>
563+
<style lang="scss">
564564
.menu-list {
565565
.search {
566566
margin: 4px;

frontend/src/components/floating-menus/NodeCatalog.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
</div>
137137
</LayoutCol>
138138

139-
<style lang="scss" global>
139+
<style lang="scss">
140140
.node-catalog {
141141
max-height: 30vh;
142142
min-width: 250px;

frontend/src/components/floating-menus/Tooltip.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
</div>
7777
{/if}
7878

79-
<style lang="scss" global>
79+
<style lang="scss">
8080
.tooltip {
8181
position: absolute;
8282
pointer-events: none;

frontend/src/components/layout/ConditionalWrapper.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
<slot />
1212
{/if}
1313

14-
<style lang="scss" global></style>
14+
<style lang="scss"></style>

0 commit comments

Comments
 (0)