@egjs/svelte-infinitegrid 4.11.1 → 4.13.0
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.
- package/.gitignore +4 -0
- package/.npmignore +3 -0
- package/CHANGELOG.md +204 -0
- package/dist/infinitegrid.cjs.js +1 -1
- package/dist/infinitegrid.esm.js +1 -1
- package/global.d.ts +8 -0
- package/package.json +2 -2
- package/rollup.build.config.js +32 -0
- package/rollup.config.js +83 -0
- package/tsconfig.json +6 -0
package/.gitignore
ADDED
package/.npmignore
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [4.12.0](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.11.1...@egjs/svelte-infinitegrid@4.12.0) (2024-07-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :mega: Other
|
|
10
|
+
|
|
11
|
+
* update packages versions ([2e2a638](https://github.com/naver/egjs-infinitegrid/commit/2e2a63806a6d8d6b1b2b492c4b762dad689de3b6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [4.11.1](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.10.2...@egjs/svelte-infinitegrid@4.11.1) (2024-02-07)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### :bug: Bug Fix
|
|
19
|
+
|
|
20
|
+
* fix observe order (#563) ([e5bfcc4](https://github.com/naver/egjs-infinitegrid/commit/e5bfcc4c61ed03009ff35b6fca8a1f70969995ae))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### :mega: Other
|
|
24
|
+
|
|
25
|
+
* update packages versions ([13597dd](https://github.com/naver/egjs-infinitegrid/commit/13597dd1e4ddcc28fdca0e9fa62f0a9c2df3b312))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [4.10.2](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.10.0...@egjs/svelte-infinitegrid@4.10.2) (2023-08-04)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### :bug: Bug Fix
|
|
33
|
+
|
|
34
|
+
* fix infoBy typo (#545) ([a3f1a75](https://github.com/naver/egjs-infinitegrid/commit/a3f1a75a1ec5d1829848113a7e7d94ac17da7882))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### :mega: Other
|
|
38
|
+
|
|
39
|
+
* update packages versions ([2222f2f](https://github.com/naver/egjs-infinitegrid/commit/2222f2f5537e3cd8ab1e16c0aa4b761c494a2e4a))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## [4.10.0](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.9.0...@egjs/svelte-infinitegrid@4.10.0) (2023-05-26)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### :rocket: New Features
|
|
47
|
+
|
|
48
|
+
* add infoBy prop for frameworks (#538) ([6fd5c0b](https://github.com/naver/egjs-infinitegrid/commit/6fd5c0b36f2aded59d3fce54d880f8882b2a3ec6))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### :mega: Other
|
|
52
|
+
|
|
53
|
+
* update packages versions ([dce9a8c](https://github.com/naver/egjs-infinitegrid/commit/dce9a8c79342d01190b59197b82bf11d25c5665c))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## [4.9.0](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.8.1...@egjs/svelte-infinitegrid@4.9.0) (2023-03-17)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### :bug: Bug Fix
|
|
61
|
+
|
|
62
|
+
* fix svelte module naming (#529) ([5e3d9fe](https://github.com/naver/egjs-infinitegrid/commit/5e3d9fefbc45066e1256a408a909045f7c4c70f7))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### :mega: Other
|
|
66
|
+
|
|
67
|
+
* update packages versions ([f628845](https://github.com/naver/egjs-infinitegrid/commit/f628845d3e3a8d0cb91f1802c352d12944b6a2a7))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## [4.8.1](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.7.1...@egjs/svelte-infinitegrid@4.8.1) (2023-01-27)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### :rocket: New Features
|
|
75
|
+
|
|
76
|
+
* update `@egjs/grid` module ([081acd5](https://github.com/naver/egjs-infinitegrid/commit/081acd53fd4ccd00b16e70e8ef86f11a63bd764c))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### :mega: Other
|
|
80
|
+
|
|
81
|
+
* update packages versions ([191e57f](https://github.com/naver/egjs-infinitegrid/commit/191e57fbb4df5c2fc8f990fa44e2819bdadf5ee6))
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## 4.7.1 (2022-09-08)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### :rocket: New Features
|
|
89
|
+
|
|
90
|
+
* add storybook (#321) ([a726015](https://github.com/naver/egjs-infinitegrid/commit/a726015066824842ef2ba05cd53e1f7a3514d8ae))
|
|
91
|
+
* add svelte-infinitegrid@3.0.0 (#301) ([8c878c9](https://github.com/naver/egjs-infinitegrid/commit/8c878c9e8d4a43ab2e98f21cb124677c7fd8f0b4))
|
|
92
|
+
* support ResizeObserver#464 (#470) ([4400701](https://github.com/naver/egjs-infinitegrid/commit/4400701b5eafc52b41eb9d496bad48f551bcf96e))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### :bug: Bug Fix
|
|
96
|
+
|
|
97
|
+
* change afterUpdate lifecycle (#304) ([4851854](https://github.com/naver/egjs-infinitegrid/commit/4851854348524ffb247316c8bd5ddc71b7deb678))
|
|
98
|
+
* fix error in multiple groups (#387) ([02df50f](https://github.com/naver/egjs-infinitegrid/commit/02df50f52644c461e2397458bef428dcb868f02f))
|
|
99
|
+
* fix setStatus method's default value (#373) ([5f8f9a2](https://github.com/naver/egjs-infinitegrid/commit/5f8f9a27a6bc8e55e49247dd6455713b77efeaf1))
|
|
100
|
+
* fix setStatus' getter (#377) ([16fa80c](https://github.com/naver/egjs-infinitegrid/commit/16fa80c042579c9766b5143b1787980930405d78))
|
|
101
|
+
* fix svelte types (#460) ([cace348](https://github.com/naver/egjs-infinitegrid/commit/cace34814d65c53562648da5713d4191242e61bd))
|
|
102
|
+
* fix svelte version issue (#315) ([bee5b3d](https://github.com/naver/egjs-infinitegrid/commit/bee5b3d272261b69c9366079f028560c43c30f63))
|
|
103
|
+
* fix svelte-infinitegrid's typo ([6fe14d5](https://github.com/naver/egjs-infinitegrid/commit/6fe14d5deba9922fe3864b2ed758cdaaa73a9fa0))
|
|
104
|
+
* fix types (#457) ([f402d62](https://github.com/naver/egjs-infinitegrid/commit/f402d62ca0335c00e6bff2f68b1c343cfc6a285d))
|
|
105
|
+
* fix types (#510) ([96adfd7](https://github.com/naver/egjs-infinitegrid/commit/96adfd7bd66c6d77015818417990339da1b59311))
|
|
106
|
+
* support svelte SSR (#430) ([1518182](https://github.com/naver/egjs-infinitegrid/commit/1518182c36483574ac4a9c4ef5896d45f9c5ed05))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### :memo: Documentation
|
|
110
|
+
|
|
111
|
+
* fix README ([a512be4](https://github.com/naver/egjs-infinitegrid/commit/a512be426af33ed949fa07c3e790a705f90ae655))
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### :mega: Other
|
|
115
|
+
|
|
116
|
+
* release 4.2.0-rc ([110b5d4](https://github.com/naver/egjs-infinitegrid/commit/110b5d4ae845d7812da1cf5727366c22840ed82a))
|
|
117
|
+
* Release 4.3.0 ([d18031e](https://github.com/naver/egjs-infinitegrid/commit/d18031ee3e9bf7f012e7bf1b0157572ba78f70b0))
|
|
118
|
+
* Release 4.3.1 ([165e354](https://github.com/naver/egjs-infinitegrid/commit/165e354bb6382cba61e0670ab16096193fdf2a2b))
|
|
119
|
+
* Release 4.4.0 ([2b066a8](https://github.com/naver/egjs-infinitegrid/commit/2b066a83470719fc78940317fe0ab44fa21fc378))
|
|
120
|
+
* Release 4.5.0 ([23e0885](https://github.com/naver/egjs-infinitegrid/commit/23e0885c2ae29130b34613227291ee6f0b102c75))
|
|
121
|
+
* Release 4.6.0 ([d529854](https://github.com/naver/egjs-infinitegrid/commit/d529854917ef31afbbb138dec8af98ef8c3c1d47))
|
|
122
|
+
* Release 4.7.0 ([9a1c5a0](https://github.com/naver/egjs-infinitegrid/commit/9a1c5a0985381a632c00cae94481cb1a50425aa0))
|
|
123
|
+
* **release:** Release 3.6.2 ([7e0201b](https://github.com/naver/egjs-infinitegrid/commit/7e0201ba39ec4989ca02b81d84594ae1967c5488))
|
|
124
|
+
* **release:** Release 3.6.3 ([91d264c](https://github.com/naver/egjs-infinitegrid/commit/91d264c22142828ea9c26d19cb747c42c65773d7))
|
|
125
|
+
* **release:** Release 3.7.0 ([83982dd](https://github.com/naver/egjs-infinitegrid/commit/83982dd04cf2a52c0d165925de0a3ec14d4acb0a))
|
|
126
|
+
* **release:** Release 3.7.1 ([e89e4a3](https://github.com/naver/egjs-infinitegrid/commit/e89e4a386a577dc2deffb822a56b6fdfb9808525))
|
|
127
|
+
* **release:** Release 3.8.0 ([0318d41](https://github.com/naver/egjs-infinitegrid/commit/0318d416acb63611890dc752815386af7497ca19))
|
|
128
|
+
* **release:** Release 3.8.1 ([578263b](https://github.com/naver/egjs-infinitegrid/commit/578263bd36356f1e976dbf78d8eab423cf84a4ef))
|
|
129
|
+
* **release:** Release 3.8.2 ([bc043cc](https://github.com/naver/egjs-infinitegrid/commit/bc043ccd840bdbd28907d6c5592bc86cf3722c95))
|
|
130
|
+
* **release:** Release 3.8.3 ([dbb97ee](https://github.com/naver/egjs-infinitegrid/commit/dbb97ee7e368ee0a3bf512e20c3cd7f2c33b2e7a))
|
|
131
|
+
* **release:** Release 3.8.4 ([67f5300](https://github.com/naver/egjs-infinitegrid/commit/67f53003f0faa58039fd560682097f6ecf4534c1))
|
|
132
|
+
* **release:** Release 3.9.0 ([9d2dca7](https://github.com/naver/egjs-infinitegrid/commit/9d2dca76591a7b033108641783418e2dc183edf3))
|
|
133
|
+
* **release:** Release 4.0.0 ([7b77f77](https://github.com/naver/egjs-infinitegrid/commit/7b77f77e3e0444fc1162458133db1303c6531903))
|
|
134
|
+
* **release:** Release 4.1.0 ([57dc167](https://github.com/naver/egjs-infinitegrid/commit/57dc167b7a1e6fc60a39d8fa990c28294ef4722b))
|
|
135
|
+
* **release:** Release 4.1.1 ([ad36273](https://github.com/naver/egjs-infinitegrid/commit/ad3627396d64c421100d9623c3bfaf6a3c1bc40d))
|
|
136
|
+
* **release:** Release 4.2.1 ([414faa6](https://github.com/naver/egjs-infinitegrid/commit/414faa683fe5e60d746d99ba1944b086ff4b23e4))
|
|
137
|
+
* update @egjs/infinitegrid to frameworks ([cc2458d](https://github.com/naver/egjs-infinitegrid/commit/cc2458dc59229865041c22d0c40068813779d132))
|
|
138
|
+
* update package.json ([c9d1faa](https://github.com/naver/egjs-infinitegrid/commit/c9d1faa896d84672771caccb086f0002bd282370))
|
|
139
|
+
* update packages versions ([212d1bc](https://github.com/naver/egjs-infinitegrid/commit/212d1bcf22c60fde09989f373d61738a195d9902))
|
|
140
|
+
* update packages versions ([e438c00](https://github.com/naver/egjs-infinitegrid/commit/e438c00929ba28bd001d6174bd57efd918144686))
|
|
141
|
+
* update packages versions ([d4aa615](https://github.com/naver/egjs-infinitegrid/commit/d4aa615a8cd3e25b621500e2a7b243dcc9696eef))
|
|
142
|
+
* update packages versions ([171bb74](https://github.com/naver/egjs-infinitegrid/commit/171bb74f708110a2fd986276c9b8d65472fa64ab))
|
|
143
|
+
* update packages versions ([29bdea0](https://github.com/naver/egjs-infinitegrid/commit/29bdea08f334113e4a73180dd5f9e803c4befc99))
|
|
144
|
+
* update packages versions ([47f9348](https://github.com/naver/egjs-infinitegrid/commit/47f9348042e19c789b986ec936ed042a3838afc8))
|
|
145
|
+
* update packages versions ([bc07e37](https://github.com/naver/egjs-infinitegrid/commit/bc07e37a5fb40e94f87cd1b07f1f7a843ddbe7e8))
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
## [4.7.0](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.6.0...@egjs/svelte-infinitegrid@4.7.0) (2022-09-02)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### :bug: Bug Fix
|
|
153
|
+
|
|
154
|
+
* fix types (#510) ([96adfd7](https://github.com/naver/egjs-infinitegrid/commit/96adfd7bd66c6d77015818417990339da1b59311))
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### :mega: Other
|
|
158
|
+
|
|
159
|
+
* update packages versions ([e438c00](https://github.com/naver/egjs-infinitegrid/commit/e438c00929ba28bd001d6174bd57efd918144686))
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## [4.6.0](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.5.0...@egjs/svelte-infinitegrid@4.6.0) (2022-07-26)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### :mega: Other
|
|
167
|
+
|
|
168
|
+
* update packages versions ([d4aa615](https://github.com/naver/egjs-infinitegrid/commit/d4aa615a8cd3e25b621500e2a7b243dcc9696eef))
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
## [4.5.0](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.4.0...@egjs/svelte-infinitegrid@4.5.0) (2022-06-23)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### :mega: Other
|
|
176
|
+
|
|
177
|
+
* update packages versions ([171bb74](https://github.com/naver/egjs-infinitegrid/commit/171bb74f708110a2fd986276c9b8d65472fa64ab))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
## [4.4.0](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.3.1...@egjs/svelte-infinitegrid@4.4.0) (2022-05-25)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### :mega: Other
|
|
185
|
+
|
|
186
|
+
* update packages versions ([29bdea0](https://github.com/naver/egjs-infinitegrid/commit/29bdea08f334113e4a73180dd5f9e803c4befc99))
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## [4.3.1](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.3.0...@egjs/svelte-infinitegrid@4.3.1) (2022-05-17)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### :mega: Other
|
|
194
|
+
|
|
195
|
+
* update packages versions ([47f9348](https://github.com/naver/egjs-infinitegrid/commit/47f9348042e19c789b986ec936ed042a3838afc8))
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## [4.3.0](https://github.com/naver/egjs-infinitegrid/compare/@egjs/svelte-infinitegrid@4.2.1...@egjs/svelte-infinitegrid@4.3.0) (2022-05-13)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### :mega: Other
|
|
203
|
+
|
|
204
|
+
* update packages versions ([bc07e37](https://github.com/naver/egjs-infinitegrid/commit/bc07e37a5fb40e94f87cd1b07f1f7a843ddbe7e8))
|
package/dist/infinitegrid.cjs.js
CHANGED
package/dist/infinitegrid.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ name: @egjs/svelte-infinitegrid
|
|
|
4
4
|
license: MIT
|
|
5
5
|
author: NAVER Corp.
|
|
6
6
|
repository: https://github.com/naver/egjs-infinitegrid
|
|
7
|
-
version: 4.
|
|
7
|
+
version: 4.13.0
|
|
8
8
|
*/
|
|
9
9
|
import { SvelteComponent, init, safe_not_equal, assign, element, set_attributes, insert, group_outros, transition_out, check_outros, transition_in, get_spread_update, detach, exclude_internal_props, binding_callbacks, create_slot, update_slot_base, get_all_dirty_from_scope, get_slot_changes, attr } from 'svelte/internal';
|
|
10
10
|
import { createEventDispatcher, beforeUpdate, onMount, afterUpdate, onDestroy } from 'svelte';
|
package/global.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egjs/svelte-infinitegrid",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "A Svelte component that can arrange items infinitely according to the type of grids",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"svelte": "src/index.js",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"typescript": "^4.5.0 <4.6.0"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@egjs/infinitegrid": "~4.
|
|
77
|
+
"@egjs/infinitegrid": "~4.13.0"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import buildHelper from "@egjs/build-helper";
|
|
2
|
+
import svelte from "rollup-plugin-svelte";
|
|
3
|
+
import sveltePreprocess from "svelte-preprocess";
|
|
4
|
+
|
|
5
|
+
const defaultOptions = {
|
|
6
|
+
tsconfig: "",
|
|
7
|
+
commonjs: true,
|
|
8
|
+
external: {
|
|
9
|
+
svelte: "svelte",
|
|
10
|
+
},
|
|
11
|
+
plugins: [
|
|
12
|
+
svelte({
|
|
13
|
+
preprocess: sveltePreprocess(),
|
|
14
|
+
}),
|
|
15
|
+
],
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default buildHelper([
|
|
19
|
+
{
|
|
20
|
+
...defaultOptions,
|
|
21
|
+
input: "./src/index.umd.js",
|
|
22
|
+
output: "dist/infinitegrid.cjs.js",
|
|
23
|
+
format: "cjs",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
...defaultOptions,
|
|
27
|
+
input: "./src/index.js",
|
|
28
|
+
output: "dist/infinitegrid.esm.js",
|
|
29
|
+
format: "es",
|
|
30
|
+
exports: "named",
|
|
31
|
+
},
|
|
32
|
+
]);
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import svelte from 'rollup-plugin-svelte';
|
|
2
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
3
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
4
|
+
import livereload from 'rollup-plugin-livereload';
|
|
5
|
+
import { terser } from 'rollup-plugin-terser';
|
|
6
|
+
import sveltePreprocess from 'svelte-preprocess';
|
|
7
|
+
import typescript from '@rollup/plugin-typescript';
|
|
8
|
+
import css from 'rollup-plugin-css-only';
|
|
9
|
+
|
|
10
|
+
const production = !process.env.ROLLUP_WATCH;
|
|
11
|
+
|
|
12
|
+
function serve() {
|
|
13
|
+
let server;
|
|
14
|
+
|
|
15
|
+
function toExit() {
|
|
16
|
+
if (server) server.kill(0);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
writeBundle() {
|
|
21
|
+
if (server) return;
|
|
22
|
+
server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], {
|
|
23
|
+
stdio: ['ignore', 'inherit', 'inherit'],
|
|
24
|
+
shell: true
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
process.on('SIGTERM', toExit);
|
|
28
|
+
process.on('exit', toExit);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
input: 'src/main.ts',
|
|
35
|
+
output: {
|
|
36
|
+
sourcemap: true,
|
|
37
|
+
format: 'iife',
|
|
38
|
+
name: 'app',
|
|
39
|
+
file: 'public/build/bundle.js'
|
|
40
|
+
},
|
|
41
|
+
plugins: [
|
|
42
|
+
svelte({
|
|
43
|
+
preprocess: sveltePreprocess({ sourceMap: !production }),
|
|
44
|
+
compilerOptions: {
|
|
45
|
+
// enable run-time checks when not in production
|
|
46
|
+
dev: !production
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
// we'll extract any component CSS out into
|
|
50
|
+
// a separate file - better for performance
|
|
51
|
+
css({ output: 'bundle.css' }),
|
|
52
|
+
|
|
53
|
+
// If you have external dependencies installed from
|
|
54
|
+
// npm, you'll most likely need these plugins. In
|
|
55
|
+
// some cases you'll need additional configuration -
|
|
56
|
+
// consult the documentation for details:
|
|
57
|
+
// https://github.com/rollup/plugins/tree/master/packages/commonjs
|
|
58
|
+
resolve({
|
|
59
|
+
browser: true,
|
|
60
|
+
dedupe: ['svelte']
|
|
61
|
+
}),
|
|
62
|
+
commonjs(),
|
|
63
|
+
typescript({
|
|
64
|
+
sourceMap: !production,
|
|
65
|
+
inlineSources: !production
|
|
66
|
+
}),
|
|
67
|
+
|
|
68
|
+
// In dev mode, call `npm run start` once
|
|
69
|
+
// the bundle has been generated
|
|
70
|
+
!production && serve(),
|
|
71
|
+
|
|
72
|
+
// Watch the `public` directory and refresh the
|
|
73
|
+
// browser on changes when not in production
|
|
74
|
+
!production && livereload('public'),
|
|
75
|
+
|
|
76
|
+
// If we're building for production (npm run build
|
|
77
|
+
// instead of npm run dev), minify
|
|
78
|
+
production && terser()
|
|
79
|
+
],
|
|
80
|
+
watch: {
|
|
81
|
+
clearScreen: false
|
|
82
|
+
}
|
|
83
|
+
};
|