not-node 6.1.2 → 6.1.3

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.
Files changed (66) hide show
  1. package/.vscode/launch.json +19 -0
  2. package/bin/not-cli.mjs +3 -8
  3. package/package.json +1 -1
  4. package/src/cli/readers/hostname.mjs +1 -1
  5. package/src/cli/readers/user.mjs +8 -1
  6. package/src/init/lib/modules.js +1 -2
  7. package/src/init/lib/routes.js +4 -1
  8. package/tmpl/files/app/app.ejs +3 -0
  9. package/playground/.babelrc +0 -11
  10. package/playground/.eslintignore +0 -4
  11. package/playground/.eslintrc.json +0 -23
  12. package/playground/app/front/build/admin.css +0 -2
  13. package/playground/app/front/build/admin.js +0 -52427
  14. package/playground/app/front/build/client.css +0 -2
  15. package/playground/app/front/build/client.js +0 -52427
  16. package/playground/app/front/build/guest.css +0 -2
  17. package/playground/app/front/build/guest.js +0 -50907
  18. package/playground/app/front/build/root.css +0 -2
  19. package/playground/app/front/build/root.js +0 -60023
  20. package/playground/app/front/build/user.css +0 -2
  21. package/playground/app/front/build/user.js +0 -52425
  22. package/playground/app/front/build.env.js +0 -15
  23. package/playground/app/front/index.!.js +0 -64
  24. package/playground/app/front/index.admin.js +0 -160
  25. package/playground/app/front/index.client.js +0 -160
  26. package/playground/app/front/index.guest.js +0 -160
  27. package/playground/app/front/index.root.js +0 -224
  28. package/playground/app/front/index.user.js +0 -160
  29. package/playground/app/front/rollup.!.js +0 -70
  30. package/playground/app/front/rollup.admin.js +0 -70
  31. package/playground/app/front/rollup.client.js +0 -70
  32. package/playground/app/front/rollup.guest.js +0 -70
  33. package/playground/app/front/rollup.root.js +0 -70
  34. package/playground/app/front/rollup.user.js +0 -70
  35. package/playground/app/front/src/admin/main/index.js +0 -45
  36. package/playground/app/front/src/client/main/index.js +0 -45
  37. package/playground/app/front/src/common/index.js +0 -39
  38. package/playground/app/front/src/common/ncInit.js +0 -18
  39. package/playground/app/front/src/common/ws.client.main.js +0 -35
  40. package/playground/app/front/src/guest/main/index.js +0 -34
  41. package/playground/app/front/src/root/main/index.js +0 -45
  42. package/playground/app/front/src/user/main/index.js +0 -45
  43. package/playground/app/server/app.js +0 -22
  44. package/playground/app/server/config/common.json +0 -99
  45. package/playground/app/server/config/development.json +0 -33
  46. package/playground/app/server/config/production.json +0 -33
  47. package/playground/app/server/config/stage.json +0 -33
  48. package/playground/app/server/index.js +0 -20
  49. package/playground/app/server/routes/index.js +0 -34
  50. package/playground/app/server/routes/site.js +0 -71
  51. package/playground/app/server/views/admin/foot.pug +0 -1
  52. package/playground/app/server/views/admin/head.pug +0 -7
  53. package/playground/app/server/views/admin/menu.pug +0 -2
  54. package/playground/app/server/views/admin.pug +0 -19
  55. package/playground/app/server/views/dashboard.pug +0 -20
  56. package/playground/app/server/views/index.pug +0 -15
  57. package/playground/app/server/views/parts/header.android.pug +0 -6
  58. package/playground/app/server/views/parts/header.ios.pug +0 -5
  59. package/playground/app/server/views/parts/header.pug +0 -18
  60. package/playground/app/server/views/parts/menu.pug +0 -1
  61. package/playground/app/server/views/parts/overview.pug +0 -2
  62. package/playground/app/server/ws/auth.js +0 -41
  63. package/playground/app/server/ws/index.js +0 -84
  64. package/playground/bin/build.sh +0 -8
  65. package/playground/package.json +0 -85
  66. package/playground/project.manifest.json +0 -37
@@ -1,224 +0,0 @@
1
-
2
-
3
- import {
4
- Frame
5
- } from 'not-bulma';
6
-
7
- const {notCommon, notApp, COMPONENTS} = Frame;
8
-
9
- notCommon.register('backlog', true);
10
- window.dumpBacklog = notCommon.dumpBacklog.bind(notCommon);
11
-
12
- let appDefaultOptions = {
13
- manifestURL: '/api/manifest',
14
- router: {
15
- root: '/',
16
- manifest: [],
17
- index: ''
18
- },
19
- language: 'ru',
20
- crud: {
21
- navigateBackAfter: ['create', 'update', 'delete']
22
- },
23
- modules: {
24
- user: {
25
- redirectTimout: 1000,
26
- afterLoginURL: '/dashboard',
27
- loginForm: {
28
- modes: [
29
- 'login',
30
- 'requestLoginCodeOnEmail',
31
- 'loginByCode'
32
- ]
33
- },
34
- loginFormContainerSelector: '.main-container',
35
- restoreFormContainerSelector: '.main-container',
36
- registerFormContainerSelector: '.main-container'
37
- }
38
- }
39
- };
40
-
41
- let services = {}, uis = {}, wsc = {}, fields = {};
42
-
43
-
44
- import * as mod_0
45
- from '/var/server/nn/playground/node_modules/not-options/src/controllers/root';
46
- appDefaultOptions = notCommon.absorbModule({
47
- defaultConf: appDefaultOptions,
48
- mod: mod_0,
49
- services, uis, wsc, fields
50
- });
51
-
52
- import * as mod_1
53
- from '/var/server/nn/playground/node_modules/not-options/src/controllers/common';
54
- appDefaultOptions = notCommon.absorbModule({
55
- defaultConf: appDefaultOptions,
56
- mod: mod_1,
57
- services, uis, wsc, fields
58
- });
59
-
60
- import * as mod_2
61
- from '/var/server/nn/playground/node_modules/not-filter/src/controllers/common';
62
- appDefaultOptions = notCommon.absorbModule({
63
- defaultConf: appDefaultOptions,
64
- mod: mod_2,
65
- services, uis, wsc, fields
66
- });
67
-
68
- import * as mod_3
69
- from '/var/server/nn/playground/node_modules/not-notification/src/controllers/root';
70
- appDefaultOptions = notCommon.absorbModule({
71
- defaultConf: appDefaultOptions,
72
- mod: mod_3,
73
- services, uis, wsc, fields
74
- });
75
-
76
- import * as mod_4
77
- from '/var/server/nn/playground/node_modules/not-locale/src/controllers/common';
78
- appDefaultOptions = notCommon.absorbModule({
79
- defaultConf: appDefaultOptions,
80
- mod: mod_4,
81
- services, uis, wsc, fields
82
- });
83
-
84
- import * as mod_5
85
- from '/var/server/nn/playground/node_modules/not-inform/src/controllers/root';
86
- appDefaultOptions = notCommon.absorbModule({
87
- defaultConf: appDefaultOptions,
88
- mod: mod_5,
89
- services, uis, wsc, fields
90
- });
91
-
92
- import * as mod_6
93
- from '/var/server/nn/playground/node_modules/not-inform-sink-email/src/controllers/root';
94
- appDefaultOptions = notCommon.absorbModule({
95
- defaultConf: appDefaultOptions,
96
- mod: mod_6,
97
- services, uis, wsc, fields
98
- });
99
-
100
- import * as mod_7
101
- from '/var/server/nn/playground/node_modules/not-inform-sink-notification/src/controllers/root';
102
- appDefaultOptions = notCommon.absorbModule({
103
- defaultConf: appDefaultOptions,
104
- mod: mod_7,
105
- services, uis, wsc, fields
106
- });
107
-
108
- import * as mod_8
109
- from '/var/server/nn/playground/node_modules/not-inform-sink-ws/src/controllers/root';
110
- appDefaultOptions = notCommon.absorbModule({
111
- defaultConf: appDefaultOptions,
112
- mod: mod_8,
113
- services, uis, wsc, fields
114
- });
115
-
116
- import * as mod_9
117
- from '/var/server/nn/playground/node_modules/not-key/src/controllers/root';
118
- appDefaultOptions = notCommon.absorbModule({
119
- defaultConf: appDefaultOptions,
120
- mod: mod_9,
121
- services, uis, wsc, fields
122
- });
123
-
124
- import * as mod_10
125
- from '/var/server/nn/playground/node_modules/not-key/src/controllers/common';
126
- appDefaultOptions = notCommon.absorbModule({
127
- defaultConf: appDefaultOptions,
128
- mod: mod_10,
129
- services, uis, wsc, fields
130
- });
131
-
132
- import * as mod_11
133
- from '/var/server/nn/playground/node_modules/not-ws/src/controllers/common';
134
- appDefaultOptions = notCommon.absorbModule({
135
- defaultConf: appDefaultOptions,
136
- mod: mod_11,
137
- services, uis, wsc, fields
138
- });
139
-
140
- import * as mod_12
141
- from '/var/server/nn/playground/node_modules/not-store/src/controllers/root';
142
- appDefaultOptions = notCommon.absorbModule({
143
- defaultConf: appDefaultOptions,
144
- mod: mod_12,
145
- services, uis, wsc, fields
146
- });
147
-
148
- import * as mod_13
149
- from '/var/server/nn/playground/node_modules/not-store/src/controllers/common';
150
- appDefaultOptions = notCommon.absorbModule({
151
- defaultConf: appDefaultOptions,
152
- mod: mod_13,
153
- services, uis, wsc, fields
154
- });
155
-
156
- import * as mod_14
157
- from '/var/server/nn/playground/node_modules/not-dbdump/src/controllers/root';
158
- appDefaultOptions = notCommon.absorbModule({
159
- defaultConf: appDefaultOptions,
160
- mod: mod_14,
161
- services, uis, wsc, fields
162
- });
163
-
164
- import * as mod_15
165
- from '/var/server/nn/playground/node_modules/not-dbdump/src/controllers/common';
166
- appDefaultOptions = notCommon.absorbModule({
167
- defaultConf: appDefaultOptions,
168
- mod: mod_15,
169
- services, uis, wsc, fields
170
- });
171
-
172
- import * as mod_16
173
- from '/var/server/nn/playground/node_modules/not-user/src/controllers/root';
174
- appDefaultOptions = notCommon.absorbModule({
175
- defaultConf: appDefaultOptions,
176
- mod: mod_16,
177
- services, uis, wsc, fields
178
- });
179
-
180
- import * as mod_17
181
- from '/var/server/nn/playground/node_modules/not-user/src/controllers/common';
182
- appDefaultOptions = notCommon.absorbModule({
183
- defaultConf: appDefaultOptions,
184
- mod: mod_17,
185
- services, uis, wsc, fields
186
- });
187
-
188
- import * as mod_18
189
- from '/var/server/nn/playground/node_modules/not-error/src/controllers/common';
190
- appDefaultOptions = notCommon.absorbModule({
191
- defaultConf: appDefaultOptions,
192
- mod: mod_18,
193
- services, uis, wsc, fields
194
- });
195
-
196
- import * as mod_19
197
- from '/var/server/nn/playground/app/front/src/common';
198
- appDefaultOptions = notCommon.absorbModule({
199
- defaultConf: appDefaultOptions,
200
- mod: mod_19,
201
- services, uis, wsc, fields
202
- });
203
-
204
- import * as mod_20
205
- from '/var/server/nn/playground/app/front/src/root/main';
206
- appDefaultOptions = notCommon.absorbModule({
207
- defaultConf: appDefaultOptions,
208
- mod: mod_20,
209
- services, uis, wsc, fields
210
- });
211
-
212
-
213
- COMPONENTS.import(uis);
214
-
215
- import 'bulma';
216
-
217
-
218
- import '/var/server/nn/playground/node_modules/not-user/src/styles/common/common.scss';
219
-
220
-
221
- appDefaultOptions.services = services;
222
- appDefaultOptions.wsc = wsc;
223
-
224
- notCommon.startApp(() => new notApp(appDefaultOptions));
@@ -1,160 +0,0 @@
1
-
2
-
3
- import {
4
- Frame
5
- } from 'not-bulma';
6
-
7
- const {notCommon, notApp, COMPONENTS} = Frame;
8
-
9
- notCommon.register('backlog', true);
10
- window.dumpBacklog = notCommon.dumpBacklog.bind(notCommon);
11
-
12
- let appDefaultOptions = {
13
- manifestURL: '/api/manifest',
14
- router: {
15
- root: '/',
16
- manifest: [],
17
- index: ''
18
- },
19
- language: 'ru',
20
- crud: {
21
- navigateBackAfter: ['create', 'update', 'delete']
22
- },
23
- modules: {
24
- user: {
25
- redirectTimout: 1000,
26
- afterLoginURL: '/dashboard',
27
- loginForm: {
28
- modes: [
29
- 'login',
30
- 'requestLoginCodeOnEmail',
31
- 'loginByCode'
32
- ]
33
- },
34
- loginFormContainerSelector: '.main-container',
35
- restoreFormContainerSelector: '.main-container',
36
- registerFormContainerSelector: '.main-container'
37
- }
38
- }
39
- };
40
-
41
- let services = {}, uis = {}, wsc = {}, fields = {};
42
-
43
-
44
- import * as mod_0
45
- from '/var/server/nn/playground/node_modules/not-options/src/controllers/common';
46
- appDefaultOptions = notCommon.absorbModule({
47
- defaultConf: appDefaultOptions,
48
- mod: mod_0,
49
- services, uis, wsc, fields
50
- });
51
-
52
- import * as mod_1
53
- from '/var/server/nn/playground/node_modules/not-filter/src/controllers/common';
54
- appDefaultOptions = notCommon.absorbModule({
55
- defaultConf: appDefaultOptions,
56
- mod: mod_1,
57
- services, uis, wsc, fields
58
- });
59
-
60
- import * as mod_2
61
- from '/var/server/nn/playground/node_modules/not-notification/src/controllers/user';
62
- appDefaultOptions = notCommon.absorbModule({
63
- defaultConf: appDefaultOptions,
64
- mod: mod_2,
65
- services, uis, wsc, fields
66
- });
67
-
68
- import * as mod_3
69
- from '/var/server/nn/playground/node_modules/not-locale/src/controllers/common';
70
- appDefaultOptions = notCommon.absorbModule({
71
- defaultConf: appDefaultOptions,
72
- mod: mod_3,
73
- services, uis, wsc, fields
74
- });
75
-
76
- import * as mod_4
77
- from '/var/server/nn/playground/node_modules/not-key/src/controllers/common';
78
- appDefaultOptions = notCommon.absorbModule({
79
- defaultConf: appDefaultOptions,
80
- mod: mod_4,
81
- services, uis, wsc, fields
82
- });
83
-
84
- import * as mod_5
85
- from '/var/server/nn/playground/node_modules/not-ws/src/controllers/common';
86
- appDefaultOptions = notCommon.absorbModule({
87
- defaultConf: appDefaultOptions,
88
- mod: mod_5,
89
- services, uis, wsc, fields
90
- });
91
-
92
- import * as mod_6
93
- from '/var/server/nn/playground/node_modules/not-store/src/controllers/common';
94
- appDefaultOptions = notCommon.absorbModule({
95
- defaultConf: appDefaultOptions,
96
- mod: mod_6,
97
- services, uis, wsc, fields
98
- });
99
-
100
- import * as mod_7
101
- from '/var/server/nn/playground/node_modules/not-dbdump/src/controllers/common';
102
- appDefaultOptions = notCommon.absorbModule({
103
- defaultConf: appDefaultOptions,
104
- mod: mod_7,
105
- services, uis, wsc, fields
106
- });
107
-
108
- import * as mod_8
109
- from '/var/server/nn/playground/node_modules/not-user/src/controllers/user';
110
- appDefaultOptions = notCommon.absorbModule({
111
- defaultConf: appDefaultOptions,
112
- mod: mod_8,
113
- services, uis, wsc, fields
114
- });
115
-
116
- import * as mod_9
117
- from '/var/server/nn/playground/node_modules/not-user/src/controllers/common';
118
- appDefaultOptions = notCommon.absorbModule({
119
- defaultConf: appDefaultOptions,
120
- mod: mod_9,
121
- services, uis, wsc, fields
122
- });
123
-
124
- import * as mod_10
125
- from '/var/server/nn/playground/node_modules/not-error/src/controllers/common';
126
- appDefaultOptions = notCommon.absorbModule({
127
- defaultConf: appDefaultOptions,
128
- mod: mod_10,
129
- services, uis, wsc, fields
130
- });
131
-
132
- import * as mod_11
133
- from '/var/server/nn/playground/app/front/src/common';
134
- appDefaultOptions = notCommon.absorbModule({
135
- defaultConf: appDefaultOptions,
136
- mod: mod_11,
137
- services, uis, wsc, fields
138
- });
139
-
140
- import * as mod_12
141
- from '/var/server/nn/playground/app/front/src/user/main';
142
- appDefaultOptions = notCommon.absorbModule({
143
- defaultConf: appDefaultOptions,
144
- mod: mod_12,
145
- services, uis, wsc, fields
146
- });
147
-
148
-
149
- COMPONENTS.import(uis);
150
-
151
- import 'bulma';
152
-
153
-
154
- import '/var/server/nn/playground/node_modules/not-user/src/styles/common/common.scss';
155
-
156
-
157
- appDefaultOptions.services = services;
158
- appDefaultOptions.wsc = wsc;
159
-
160
- notCommon.startApp(() => new notApp(appDefaultOptions));
@@ -1,70 +0,0 @@
1
- // Rollup plugins
2
- import babel from "@rollup/plugin-babel";
3
- import commonjs from "@rollup/plugin-commonjs";
4
- import svelte from "rollup-plugin-svelte";
5
- import resolve from "@rollup/plugin-node-resolve";
6
- import filesize from "rollup-plugin-filesize";
7
- import sizes from "rollup-plugin-sizes";
8
- import postcss from "rollup-plugin-postcss";
9
- import json from "@rollup/plugin-json";
10
-
11
- import { babelOn } from "./build.env.js";
12
-
13
- export default {
14
- input: "<%= inputPath %>",
15
- output: {
16
- file: "<%= outputPath %>",
17
- name: "<%= appName %>",
18
- format: "iife",
19
- sourcemap:
20
- false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
- },
22
- plugins: [
23
- json(),
24
- svelte({
25
- emitCss: true,
26
- }),
27
- resolve({
28
- browser: true,
29
- preferBuiltins: true,
30
- dedupe: (importee) =>
31
- importee === "svelte" || importee.startsWith("svelte/"),
32
- }),
33
- commonjs({}),
34
- postcss({
35
- extract: true,
36
- minimize: true,
37
- use: [
38
- [
39
- "sass",
40
- {
41
- includePaths: ["./src/styles/theme", "./node_modules"],
42
- },
43
- ],
44
- ],
45
- }),
46
- babelOn() &&
47
- babel({
48
- presets: [
49
- [
50
- "@babel/preset-env",
51
- {
52
- corejs: 3,
53
- modules: false,
54
- useBuiltIns: "usage",
55
- targets: "> 2.5%, not dead",
56
- },
57
- ],
58
- ],
59
- babelHelpers: "bundled",
60
- plugins: [
61
- "@babel/plugin-proposal-class-properties",
62
- "@babel/plugin-proposal-private-methods",
63
- "@babel/transform-arrow-functions",
64
- ],
65
- exclude: ["node_modules/**", "build/**"],
66
- }),
67
- sizes(),
68
- filesize(),
69
- ],
70
- };
@@ -1,70 +0,0 @@
1
- // Rollup plugins
2
- import babel from "@rollup/plugin-babel";
3
- import commonjs from "@rollup/plugin-commonjs";
4
- import svelte from "rollup-plugin-svelte";
5
- import resolve from "@rollup/plugin-node-resolve";
6
- import filesize from "rollup-plugin-filesize";
7
- import sizes from "rollup-plugin-sizes";
8
- import postcss from "rollup-plugin-postcss";
9
- import json from "@rollup/plugin-json";
10
-
11
- import { babelOn } from "./build.env.js";
12
-
13
- export default {
14
- input: "/var/server/nn/playground/app/front/index.admin.js",
15
- output: {
16
- file: "/var/server/nn/playground/app/front/build/admin.js",
17
- name: "notNodeApplication",
18
- format: "iife",
19
- sourcemap:
20
- false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
- },
22
- plugins: [
23
- json(),
24
- svelte({
25
- emitCss: true,
26
- }),
27
- resolve({
28
- browser: true,
29
- preferBuiltins: true,
30
- dedupe: (importee) =>
31
- importee === "svelte" || importee.startsWith("svelte/"),
32
- }),
33
- commonjs({}),
34
- postcss({
35
- extract: true,
36
- minimize: true,
37
- use: [
38
- [
39
- "sass",
40
- {
41
- includePaths: ["./src/styles/theme", "./node_modules"],
42
- },
43
- ],
44
- ],
45
- }),
46
- babelOn() &&
47
- babel({
48
- presets: [
49
- [
50
- "@babel/preset-env",
51
- {
52
- corejs: 3,
53
- modules: false,
54
- useBuiltIns: "usage",
55
- targets: "> 2.5%, not dead",
56
- },
57
- ],
58
- ],
59
- babelHelpers: "bundled",
60
- plugins: [
61
- "@babel/plugin-proposal-class-properties",
62
- "@babel/plugin-proposal-private-methods",
63
- "@babel/transform-arrow-functions",
64
- ],
65
- exclude: ["node_modules/**", "build/**"],
66
- }),
67
- sizes(),
68
- filesize(),
69
- ],
70
- };
@@ -1,70 +0,0 @@
1
- // Rollup plugins
2
- import babel from "@rollup/plugin-babel";
3
- import commonjs from "@rollup/plugin-commonjs";
4
- import svelte from "rollup-plugin-svelte";
5
- import resolve from "@rollup/plugin-node-resolve";
6
- import filesize from "rollup-plugin-filesize";
7
- import sizes from "rollup-plugin-sizes";
8
- import postcss from "rollup-plugin-postcss";
9
- import json from "@rollup/plugin-json";
10
-
11
- import { babelOn } from "./build.env.js";
12
-
13
- export default {
14
- input: "/var/server/nn/playground/app/front/index.client.js",
15
- output: {
16
- file: "/var/server/nn/playground/app/front/build/client.js",
17
- name: "notNodeApplication",
18
- format: "iife",
19
- sourcemap:
20
- false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
- },
22
- plugins: [
23
- json(),
24
- svelte({
25
- emitCss: true,
26
- }),
27
- resolve({
28
- browser: true,
29
- preferBuiltins: true,
30
- dedupe: (importee) =>
31
- importee === "svelte" || importee.startsWith("svelte/"),
32
- }),
33
- commonjs({}),
34
- postcss({
35
- extract: true,
36
- minimize: true,
37
- use: [
38
- [
39
- "sass",
40
- {
41
- includePaths: ["./src/styles/theme", "./node_modules"],
42
- },
43
- ],
44
- ],
45
- }),
46
- babelOn() &&
47
- babel({
48
- presets: [
49
- [
50
- "@babel/preset-env",
51
- {
52
- corejs: 3,
53
- modules: false,
54
- useBuiltIns: "usage",
55
- targets: "> 2.5%, not dead",
56
- },
57
- ],
58
- ],
59
- babelHelpers: "bundled",
60
- plugins: [
61
- "@babel/plugin-proposal-class-properties",
62
- "@babel/plugin-proposal-private-methods",
63
- "@babel/transform-arrow-functions",
64
- ],
65
- exclude: ["node_modules/**", "build/**"],
66
- }),
67
- sizes(),
68
- filesize(),
69
- ],
70
- };
@@ -1,70 +0,0 @@
1
- // Rollup plugins
2
- import babel from "@rollup/plugin-babel";
3
- import commonjs from "@rollup/plugin-commonjs";
4
- import svelte from "rollup-plugin-svelte";
5
- import resolve from "@rollup/plugin-node-resolve";
6
- import filesize from "rollup-plugin-filesize";
7
- import sizes from "rollup-plugin-sizes";
8
- import postcss from "rollup-plugin-postcss";
9
- import json from "@rollup/plugin-json";
10
-
11
- import { babelOn } from "./build.env.js";
12
-
13
- export default {
14
- input: "/var/server/nn/playground/app/front/index.guest.js",
15
- output: {
16
- file: "/var/server/nn/playground/app/front/build/guest.js",
17
- name: "notNodeApplication",
18
- format: "iife",
19
- sourcemap:
20
- false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
- },
22
- plugins: [
23
- json(),
24
- svelte({
25
- emitCss: true,
26
- }),
27
- resolve({
28
- browser: true,
29
- preferBuiltins: true,
30
- dedupe: (importee) =>
31
- importee === "svelte" || importee.startsWith("svelte/"),
32
- }),
33
- commonjs({}),
34
- postcss({
35
- extract: true,
36
- minimize: true,
37
- use: [
38
- [
39
- "sass",
40
- {
41
- includePaths: ["./src/styles/theme", "./node_modules"],
42
- },
43
- ],
44
- ],
45
- }),
46
- babelOn() &&
47
- babel({
48
- presets: [
49
- [
50
- "@babel/preset-env",
51
- {
52
- corejs: 3,
53
- modules: false,
54
- useBuiltIns: "usage",
55
- targets: "> 2.5%, not dead",
56
- },
57
- ],
58
- ],
59
- babelHelpers: "bundled",
60
- plugins: [
61
- "@babel/plugin-proposal-class-properties",
62
- "@babel/plugin-proposal-private-methods",
63
- "@babel/transform-arrow-functions",
64
- ],
65
- exclude: ["node_modules/**", "build/**"],
66
- }),
67
- sizes(),
68
- filesize(),
69
- ],
70
- };