svelte-on-rails 9.1.1 → 9.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 882a0c3debc51bbee5427a0018a11824d81858cc1520757f08291ac61688ee11
|
|
4
|
+
data.tar.gz: 2b0f1c6e42d88f0c0493638f6702bc6380d16b50ae1fd62e01fcdf436e7de795
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 361cde3cd2fa88777bdbfa4a904a5fa3424d01af094ace0610c512c17f78cd45a407c28a2cefe501419923905046464bc0222e26d34f342b132d0d5ac0d9aea2
|
|
7
|
+
data.tar.gz: ce4d0f017de39c488051a6c33750238a048b197858e657a4d6d5dfb9b0edf7cf733f6976f40745e475fdfaba54cb83fc5cd6df435588cbdc17ac598a650a17cf
|
|
@@ -4,15 +4,9 @@ module SvelteOnRails
|
|
|
4
4
|
module Generators
|
|
5
5
|
class UpdateGenerator < Rails::Generators::Base
|
|
6
6
|
|
|
7
|
-
class_option :compile, type: :boolean, default: false, desc: "Compile Svelte assets only"
|
|
8
|
-
|
|
9
7
|
def initialize(*args)
|
|
10
8
|
|
|
11
9
|
super
|
|
12
|
-
|
|
13
|
-
puts
|
|
14
|
-
|
|
15
|
-
@option_choosed = options[:compile]
|
|
16
10
|
end
|
|
17
11
|
|
|
18
12
|
def updating
|
|
@@ -24,7 +18,7 @@ module SvelteOnRails
|
|
|
24
18
|
i_utils = SvelteOnRails::Installer::Utils
|
|
25
19
|
utils = SvelteOnRails::Lib::Utils
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
i_utils.write_templates(['config_base'], ask_for_overwrite: true, only: ['vite-ssr.config.ts'])
|
|
28
22
|
|
|
29
23
|
puts '-' * 80
|
|
30
24
|
puts ' ▶︎▶︎▶︎ Updated svelte-on-rails gem, now precompiling svelte assets....'
|
|
@@ -89,8 +89,14 @@ export default defineConfig(({ mode }) => {
|
|
|
89
89
|
compilerOptions: {
|
|
90
90
|
// Enable runes mode for Svelte 5+ (explicit reactivity, signals)
|
|
91
91
|
runes: true,
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
warningFilter: (warning) => {
|
|
93
|
+
const suppressed = [
|
|
94
|
+
// 'a11y_click_events_have_key_events',
|
|
95
|
+
// 'a11y_no_static_element_interactions',
|
|
96
|
+
// https://svelte.dev/docs/svelte/compiler-warnings
|
|
97
|
+
];
|
|
98
|
+
return !suppressed.includes(warning.code);
|
|
99
|
+
}
|
|
94
100
|
},
|
|
95
101
|
}),
|
|
96
102
|
{
|