-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
752 lines (752 loc) · 31.1 KB
/
Copy pathschema.json
File metadata and controls
752 lines (752 loc) · 31.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Charset": {
"enum": ["ascii", "utf8"],
"type": "string"
},
"Drop": {
"enum": ["console", "debugger"],
"type": "string"
},
"FilterPattern": {
"anyOf": [
{
"$ref": "#/definitions/RegExp"
},
{
"items": {
"anyOf": [
{
"$ref": "#/definitions/RegExp"
},
{
"type": "string"
}
]
},
"type": "array"
},
{
"type": "string"
}
],
"description": "A valid `picomatch` glob pattern, or array of patterns."
},
"Format": {
"enum": ["cjs", "esm", "iife"],
"type": "string"
},
"LogLevel": {
"enum": ["debug", "error", "info", "silent", "verbose", "warning"],
"type": "string"
},
"Omit<TransformOptions,\"sourcemap\"|\"loader\">": {
"properties": {
"banner": {
"description": "Documentation: https://esbuild.github.io/api/#banner",
"type": "string"
},
"charset": {
"$ref": "#/definitions/Charset",
"description": "Documentation: https://esbuild.github.io/api/#charset"
},
"color": {
"description": "Documentation: https://esbuild.github.io/api/#color",
"type": "boolean"
},
"define": {
"additionalProperties": {
"type": "string"
},
"description": "Documentation: https://esbuild.github.io/api/#define",
"type": "object"
},
"drop": {
"description": "Documentation: https://esbuild.github.io/api/#drop",
"items": {
"$ref": "#/definitions/Drop"
},
"type": "array"
},
"dropLabels": {
"description": "Documentation: https://esbuild.github.io/api/#drop-labels",
"items": {
"type": "string"
},
"type": "array"
},
"footer": {
"description": "Documentation: https://esbuild.github.io/api/#footer",
"type": "string"
},
"format": {
"$ref": "#/definitions/Format",
"description": "Documentation: https://esbuild.github.io/api/#format"
},
"globalName": {
"description": "Documentation: https://esbuild.github.io/api/#global-name",
"type": "string"
},
"ignoreAnnotations": {
"description": "Documentation: https://esbuild.github.io/api/#ignore-annotations",
"type": "boolean"
},
"jsx": {
"description": "Documentation: https://esbuild.github.io/api/#jsx",
"enum": ["automatic", "preserve", "transform"],
"type": "string"
},
"jsxDev": {
"description": "Documentation: https://esbuild.github.io/api/#jsx-development",
"type": "boolean"
},
"jsxFactory": {
"description": "Documentation: https://esbuild.github.io/api/#jsx-factory",
"type": "string"
},
"jsxFragment": {
"description": "Documentation: https://esbuild.github.io/api/#jsx-fragment",
"type": "string"
},
"jsxImportSource": {
"description": "Documentation: https://esbuild.github.io/api/#jsx-import-source",
"type": "string"
},
"jsxSideEffects": {
"description": "Documentation: https://esbuild.github.io/api/#jsx-side-effects",
"type": "boolean"
},
"keepNames": {
"description": "Documentation: https://esbuild.github.io/api/#keep-names",
"type": "boolean"
},
"legalComments": {
"description": "Documentation: https://esbuild.github.io/api/#legal-comments",
"enum": ["eof", "external", "inline", "linked", "none"],
"type": "string"
},
"lineLimit": {
"description": "Documentation: https://esbuild.github.io/api/#line-limit",
"type": "number"
},
"logLevel": {
"$ref": "#/definitions/LogLevel",
"description": "Documentation: https://esbuild.github.io/api/#log-level"
},
"logLimit": {
"description": "Documentation: https://esbuild.github.io/api/#log-limit",
"type": "number"
},
"logOverride": {
"$ref": "#/definitions/Record<string,LogLevel>",
"description": "Documentation: https://esbuild.github.io/api/#log-override"
},
"mangleCache": {
"$ref": "#/definitions/Record<string,string|false>",
"description": "Documentation: https://esbuild.github.io/api/#mangle-props"
},
"mangleProps": {
"$ref": "#/definitions/RegExp",
"description": "Documentation: https://esbuild.github.io/api/#mangle-props"
},
"mangleQuoted": {
"description": "Documentation: https://esbuild.github.io/api/#mangle-props",
"type": "boolean"
},
"minify": {
"description": "Documentation: https://esbuild.github.io/api/#minify",
"type": "boolean"
},
"minifyIdentifiers": {
"description": "Documentation: https://esbuild.github.io/api/#minify",
"type": "boolean"
},
"minifySyntax": {
"description": "Documentation: https://esbuild.github.io/api/#minify",
"type": "boolean"
},
"minifyWhitespace": {
"description": "Documentation: https://esbuild.github.io/api/#minify",
"type": "boolean"
},
"platform": {
"$ref": "#/definitions/Platform",
"description": "Documentation: https://esbuild.github.io/api/#platform"
},
"pure": {
"description": "Documentation: https://esbuild.github.io/api/#pure",
"items": {
"type": "string"
},
"type": "array"
},
"reserveProps": {
"$ref": "#/definitions/RegExp",
"description": "Documentation: https://esbuild.github.io/api/#mangle-props"
},
"sourceRoot": {
"description": "Documentation: https://esbuild.github.io/api/#source-root",
"type": "string"
},
"sourcefile": {
"description": "Documentation: https://esbuild.github.io/api/#sourcefile",
"type": "string"
},
"sourcesContent": {
"description": "Documentation: https://esbuild.github.io/api/#sources-content",
"type": "boolean"
},
"supported": {
"$ref": "#/definitions/Record<string,boolean>",
"description": "Documentation: https://esbuild.github.io/api/#supported"
},
"target": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "Documentation: https://esbuild.github.io/api/#target"
},
"treeShaking": {
"description": "Documentation: https://esbuild.github.io/api/#tree-shaking",
"type": "boolean"
},
"tsconfigRaw": {
"anyOf": [
{
"$ref": "#/definitions/TsconfigRaw"
},
{
"type": "string"
}
],
"description": "Documentation: https://esbuild.github.io/api/#tsconfig-raw"
}
},
"type": "object"
},
"Options_1": {
"allOf": [
{
"$ref": "#/definitions/Omit<TransformOptions,\"sourcemap\"|\"loader\">"
},
{
"properties": {
"exclude": {
"$ref": "#/definitions/FilterPattern"
},
"include": {
"$ref": "#/definitions/FilterPattern"
},
"loaders": {
"additionalProperties": {
"enum": [
"base64",
"binary",
"copy",
"css",
"dataurl",
"default",
"empty",
false,
"file",
"js",
"json",
"jsx",
"local-css",
"text",
"ts",
"tsx"
]
},
"description": "Map extension to esbuild loader\nNote that each entry (the extension) needs to start with a dot",
"type": "object"
},
"optimizeDeps": {},
"sourceMap": {
"type": "boolean"
},
"tsconfig": {
"anyOf": [
{
"const": false,
"type": "boolean"
},
{
"type": "string"
}
],
"description": "Use this tsconfig file instead\nDisable it by setting to `false`"
}
},
"type": "object"
}
]
},
"Options_2": {
"properties": {
"compilerOptions": {
"description": "In case you want to use TypeScript path-mapping feature, using the\n`baseUrl` and `paths` properties, you can pass in `compilerOptions`."
},
"respectExternal": {
"description": "The plugin will by default flag *all* external libraries as `external`,\nand thus prevent them from be bundled.\nIf you set the `respectExternal` option to `true`, the plugin will not do\nany default classification, but rather use the `external` option as\nconfigured via rollup.",
"type": "boolean"
},
"tsconfig": {
"description": "Path to tsconfig.json, by default, will try to load 'tsconfig.json'",
"type": "string"
}
},
"type": "object"
},
"Platform": {
"enum": ["browser", "neutral", "node"],
"type": "string"
},
"Record<string,LogLevel>": {
"type": "object"
},
"Record<string,boolean>": {
"type": "object"
},
"Record<string,string[]>": {
"type": "object"
},
"Record<string,string|false>": {
"type": "object"
},
"RegExp": {
"properties": {
"dotAll": {
"type": "boolean"
},
"flags": {
"type": "string"
},
"global": {
"type": "boolean"
},
"ignoreCase": {
"type": "boolean"
},
"lastIndex": {
"type": "number"
},
"multiline": {
"type": "boolean"
},
"source": {
"type": "string"
},
"sticky": {
"type": "boolean"
},
"unicode": {
"type": "boolean"
}
},
"type": "object"
},
"RollupCommonJSOptions": {
"properties": {
"defaultIsModuleExports": {
"anyOf": [
{
"enum": ["auto", false, true]
},
{
"type": "object"
}
],
"default": "auto"
},
"dynamicRequireRoot": {
"description": "To avoid long paths when using the `dynamicRequireTargets` option, you can use this option to specify a directory\nthat is a common parent for all files that use dynamic require statements. Using a directory higher up such as `/`\nmay lead to unnecessarily long paths in the generated code and may expose directory names on your machine like your\nhome directory name. By default, it uses the current working directory.",
"type": "string"
},
"dynamicRequireTargets": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "Some modules contain dynamic `require` calls, or require modules that\ncontain circular dependencies, which are not handled well by static\nimports. Including those modules as `dynamicRequireTargets` will simulate a\nCommonJS (NodeJS-like) environment for them with support for dynamic\ndependencies. It also enables `strictRequires` for those modules.\n\nNote: In extreme cases, this feature may result in some paths being\nrendered as absolute in the final bundle. The plugin tries to avoid\nexposing paths from the local machine, but if you are `dynamicRequirePaths`\nwith paths that are far away from your project's folder, that may require\nreplacing strings like `\"/Users/John/Desktop/foo-project/\"` -> `\"/\"`."
},
"esmExternals": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": ["object", "boolean"]
}
],
"default": false,
"description": "Controls how to render imports from external dependencies. By default,\nthis plugin assumes that all external dependencies are CommonJS. This\nmeans they are rendered as default imports to be compatible with e.g.\nNodeJS where ES modules can only import a default export from a CommonJS\ndependency.\n\nIf you set `esmExternals` to `true`, this plugin assumes that all\nexternal dependencies are ES modules and respect the\n`requireReturnsDefault` option. If that option is not set, they will be\nrendered as namespace imports.\n\nYou can also supply an array of ids to be treated as ES modules, or a\nfunction that will be passed each external id to determine whether it is\nan ES module."
},
"exclude": {
"$ref": "#/definitions/FilterPattern",
"default": "undefined",
"description": "A picomatch pattern, or array of patterns, which specifies the files in\nthe build the plugin should _ignore_. By default, all files with\nextensions other than those in `extensions` or `\".cjs\"` are ignored, but you\ncan exclude additional files. See also the `include` option."
},
"extensions": {
"default": "[ '.js' ]",
"description": "For extensionless imports, search for extensions other than .js in the\norder specified. Note that you need to make sure that non-JavaScript files\nare transpiled by another plugin first.",
"items": {
"type": "string"
},
"type": "array"
},
"ignore": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "object"
}
],
"default": [],
"description": "Sometimes you have to leave require statements unconverted. Pass an array\ncontaining the IDs or a `id => boolean` function."
},
"ignoreDynamicRequires": {
"default": false,
"description": "Some `require` calls cannot be resolved statically to be translated to\nimports.\nWhen this option is set to `false`, the generated code will either\ndirectly throw an error when such a call is encountered or, when\n`dynamicRequireTargets` is used, when such a call cannot be resolved with a\nconfigured dynamic require target.\nSetting this option to `true` will instead leave the `require` call in the\ncode or use it as a fallback for `dynamicRequireTargets`.",
"type": "boolean"
},
"ignoreGlobal": {
"default": false,
"description": "If true then uses of `global` won't be dealt with by this plugin",
"type": "boolean"
},
"ignoreTryCatch": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"enum": [false, "remove", true]
},
{
"type": "object"
}
],
"default": true,
"description": "In most cases, where `require` calls are inside a `try-catch` clause,\nthey should be left unconverted as it requires an optional dependency\nthat may or may not be installed beside the rolled up package.\nDue to the conversion of `require` to a static `import` - the call is\nhoisted to the top of the file, outside the `try-catch` clause.\n\n- `true`: Default. All `require` calls inside a `try` will be left unconverted.\n- `false`: All `require` calls inside a `try` will be converted as if the\n `try-catch` clause is not there.\n- `remove`: Remove all `require` calls from inside any `try` block.\n- `string[]`: Pass an array containing the IDs to left unconverted.\n- `((id: string) => boolean|'remove')`: Pass a function that controls\n individual IDs."
},
"include": {
"$ref": "#/definitions/FilterPattern",
"default": "undefined",
"description": "A picomatch pattern, or array of patterns, which specifies the files in\nthe build the plugin should operate on. By default, all files with\nextension `\".cjs\"` or those in `extensions` are included, but you can\nnarrow this list by only including specific files. These files will be\nanalyzed and transpiled if either the analysis does not find ES module\nspecific statements or `transformMixedEsModules` is `true`."
},
"requireReturnsDefault": {
"anyOf": [
{
"enum": ["auto", false, "namespace", "preferred", true]
},
{
"type": "object"
}
],
"default": false,
"description": "Controls what is returned when requiring an ES module from a CommonJS file.\nWhen using the `esmExternals` option, this will also apply to external\nmodules. By default, this plugin will render those imports as namespace\nimports i.e.\n\n```js\n// input\nconst foo = require('foo');\n\n// output\nimport * as foo from 'foo';\n```\n\nHowever, there are some situations where this may not be desired.\nFor these situations, you can change Rollup's behaviour either globally or\nper module. To change it globally, set the `requireReturnsDefault` option\nto one of the following values:\n\n- `false`: This is the default, requiring an ES module returns its\n namespace. This is the only option that will also add a marker\n `__esModule: true` to the namespace to support interop patterns in\n CommonJS modules that are transpiled ES modules.\n- `\"namespace\"`: Like `false`, requiring an ES module returns its\n namespace, but the plugin does not add the `__esModule` marker and thus\n creates more efficient code. For external dependencies when using\n `esmExternals: true`, no additional interop code is generated.\n- `\"auto\"`: This is complementary to how `output.exports: \"auto\"` works in\n Rollup: If a module has a default export and no named exports, requiring\n that module returns the default export. In all other cases, the namespace\n is returned. For external dependencies when using `esmExternals: true`, a\n corresponding interop helper is added.\n- `\"preferred\"`: If a module has a default export, requiring that module\n always returns the default export, no matter whether additional named\n exports exist. This is similar to how previous versions of this plugin\n worked. Again for external dependencies when using `esmExternals: true`,\n an interop helper is added.\n- `true`: This will always try to return the default export on require\n without checking if it actually exists. This can throw at build time if\n there is no default export. This is how external dependencies are handled\n when `esmExternals` is not used. The advantage over the other options is\n that, like `false`, this does not add an interop helper for external\n dependencies, keeping the code lean.\n\nTo change this for individual modules, you can supply a function for\n`requireReturnsDefault` instead. This function will then be called once for\neach required ES module or external dependency with the corresponding id\nand allows you to return different values for different modules."
},
"sourceMap": {
"default": true,
"description": "If false, skips source map generation for CommonJS modules. This will\nimprove performance.",
"type": "boolean"
},
"strictRequires": {
"anyOf": [
{
"$ref": "#/definitions/RegExp"
},
{
"items": {
"anyOf": [
{
"$ref": "#/definitions/RegExp"
},
{
"type": "string"
}
]
},
"type": "array"
},
{
"type": ["string", "boolean"]
}
],
"default": "auto",
"description": "By default, this plugin will try to hoist `require` statements as imports\nto the top of each file. While this works well for many code bases and\nallows for very efficient ESM output, it does not perfectly capture\nCommonJS semantics as the order of side effects like log statements may\nchange. But it is especially problematic when there are circular `require`\ncalls between CommonJS modules as those often rely on the lazy execution of\nnested `require` calls.\n\nSetting this option to `true` will wrap all CommonJS files in functions\nwhich are executed when they are required for the first time, preserving\nNodeJS semantics. Note that this can have an impact on the size and\nperformance of the generated code.\n\nThe default value of `\"auto\"` will only wrap CommonJS files when they are\npart of a CommonJS dependency cycle, e.g. an index file that is required by\nmany of its dependencies. All other CommonJS files are hoisted. This is the\nrecommended setting for most code bases.\n\n`false` will entirely prevent wrapping and hoist all files. This may still\nwork depending on the nature of cyclic dependencies but will often cause\nproblems.\n\nYou can also provide a picomatch pattern, or array of patterns, to only\nspecify a subset of files which should be wrapped in functions for proper\n`require` semantics.\n\n`\"debug\"` works like `\"auto\"` but after bundling, it will display a warning\ncontaining a list of ids that have been wrapped which can be used as\npicomatch pattern for fine-tuning."
},
"transformMixedEsModules": {
"default": false,
"description": "Instructs the plugin whether to enable mixed module transformations. This\nis useful in scenarios with modules that contain a mix of ES `import`\nstatements and CommonJS `require` expressions. Set to `true` if `require`\ncalls should be transformed to imports in mixed modules, or `false` if the\n`require` expressions should survive the transformation. The latter can be\nimportant if the code contains environment detection, or you are coding\nfor an environment with special treatment for `require` calls such as\nElectronJS. See also the `ignore` option.",
"type": "boolean"
}
},
"type": "object"
},
"RollupJsonOptions": {
"properties": {
"compact": {
"default": false,
"description": "Ignores indent and generates the smallest code",
"type": "boolean"
},
"exclude": {
"$ref": "#/definitions/FilterPattern",
"description": "All JSON files will be parsed by default,\nbut you can also specifically exclude files"
},
"include": {
"$ref": "#/definitions/FilterPattern",
"description": "All JSON files will be parsed by default,\nbut you can also specifically include files"
},
"indent": {
"default": "'\\t'",
"description": "Specify indentation for the generated default export",
"type": "string"
},
"namedExports": {
"default": true,
"description": "Generate a named export for every property of the JSON object",
"type": "boolean"
},
"preferConst": {
"default": false,
"description": "For tree-shaking, properties will be declared as variables, using\neither `var` or `const`.",
"type": "boolean"
}
},
"type": "object"
},
"RollupNodeResolveOptions": {
"properties": {
"allowExportsFolderMapping": {
"default": true,
"description": "Allow folder mappings in package exports (trailing /)\nThis was deprecated in Node 14 and removed with Node 17, see DEP0148.\nSo this option might be changed to default to `false` in a future release.",
"type": "boolean"
},
"browser": {
"default": false,
"description": "If `true`, instructs the plugin to use the `\"browser\"` property in `package.json`\nfiles to specify alternative files to load for bundling. This is useful when\nbundling for a browser environment. Alternatively, a value of `'browser'` can be\nadded to the `mainFields` option. If `false`, any `\"browser\"` properties in\npackage files will be ignored. This option takes precedence over `mainFields`.",
"type": "boolean"
},
"dedupe": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "object"
}
],
"description": "An `Array` of modules names, which instructs the plugin to force resolving for the\nspecified modules to the root `node_modules`. Helps to prevent bundling the same\npackage multiple times if package is imported from dependencies."
},
"exportConditions": {
"description": "Additional conditions of the package.json exports field to match when resolving modules.\nBy default, this plugin looks for the `'default', 'module', 'import']` conditions when resolving imports.\n\nWhen using `@rollup/plugin-commonjs` v16 or higher, this plugin will use the\n`['default', 'module', 'import']` conditions when resolving require statements.\n\nSetting this option will add extra conditions on top of the default conditions.\nSee https://nodejs.org/api/packages.html#packages_conditional_exports for more information.",
"items": {
"type": "string"
},
"type": "array"
},
"extensions": {
"default": "[ '.mjs', '.js', '.json', '.node' ]",
"description": "Specifies the extensions of files that the plugin will operate on.",
"items": {
"type": "string"
},
"type": "array"
},
"jail": {
"default": "'/'",
"description": "Locks the module search within specified path (e.g. chroot). Modules defined\noutside this path will be marked as external.",
"type": "string"
},
"mainFields": {
"default": "['module', 'main']",
"description": "Specifies the properties to scan within a `package.json`, used to determine the\nbundle entry point.",
"items": {
"type": "string"
},
"type": "array"
},
"moduleDirectories": {
"default": "['node_modules']",
"description": "A list of directory names in which to recursively look for modules.",
"items": {
"type": "string"
},
"type": "array"
},
"modulePaths": {
"default": [],
"description": "A list of absolute paths to additional locations to search for modules.\nThis is analogous to setting the `NODE_PATH` environment variable for node.",
"items": {
"type": "string"
},
"type": "array"
},
"modulesOnly": {
"default": false,
"description": "If `true`, inspect resolved files to assert that they are ES2015 modules.",
"type": "boolean"
},
"preferBuiltins": {
"default": true,
"description": "If `true`, the plugin will prefer built-in modules (e.g. `fs`, `path`). If `false`,\nthe plugin will look for locally installed modules of the same name.",
"type": "boolean"
},
"resolveOnly": {
"anyOf": [
{
"items": {
"anyOf": [
{
"$ref": "#/definitions/RegExp"
},
{
"type": "string"
}
]
},
"type": "array"
},
{
"type": "object"
}
],
"default": [],
"description": "An `Array` which instructs the plugin to limit module resolution to those whose\nnames match patterns in the array."
},
"rootDir": {
"default": "process.cwd()",
"description": "Specifies the root directory from which to resolve modules. Typically used when\nresolving entry-point imports, and when resolving deduplicated modules.",
"type": "string"
}
},
"type": "object"
},
"TsconfigRaw": {
"properties": {
"compilerOptions": {
"properties": {
"alwaysStrict": {
"type": "boolean"
},
"baseUrl": {
"type": "string"
},
"experimentalDecorators": {
"type": "boolean"
},
"importsNotUsedAsValues": {
"enum": ["error", "preserve", "remove"],
"type": "string"
},
"jsx": {
"enum": [
"preserve",
"react",
"react-jsx",
"react-jsxdev",
"react-native"
],
"type": "string"
},
"jsxFactory": {
"type": "string"
},
"jsxFragmentFactory": {
"type": "string"
},
"jsxImportSource": {
"type": "string"
},
"paths": {
"$ref": "#/definitions/Record<string,string[]>"
},
"preserveValueImports": {
"type": "boolean"
},
"strict": {
"type": "boolean"
},
"target": {
"type": "string"
},
"useDefineForClassFields": {
"type": "boolean"
},
"verbatimModuleSyntax": {
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
},
"properties": {
"commonjs": {
"$ref": "#/definitions/RollupCommonJSOptions"
},
"cwd": {
"type": "string"
},
"dts": {
"$ref": "#/definitions/Options_2"
},
"esbuild": {
"$ref": "#/definitions/Options_1"
},
"input": {
"type": "string"
},
"json": {
"$ref": "#/definitions/RollupJsonOptions"
},
"pkg": {
"type": "string"
},
"resolve": {
"$ref": "#/definitions/RollupNodeResolveOptions"
},
"src": {
"type": "string"
},
"tsconfig": {
"type": "string"
}
},
"type": "object"
}