forked from sanity-io/sanity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.module-aliases.js
43 lines (37 loc) · 2 KB
/
.module-aliases.js
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
// These are path mappings/aliases used by various tools in the monorepo to map imported modules to source files
// in order to speed up rebuilding and avoid having a separate watcher process to build from src => dist/lib
//
// this file is currently read by:
// - webpack when running the dev server
// - vite config for the workshop
// - jest when running test suite
//
module.exports = {
// note: don't include any regex in the module expressions
// because they will be escaped by our jest config.
'@sanity/base/__legacy/@sanity/components':
'./packages/@sanity/base/src/__legacy/@sanity/components',
'@sanity/base': './packages/@sanity/base/src/_exports',
'@sanity/desk-tool': './packages/@sanity/desk-tool/src/_exports',
'@sanity/dashboard': './packages/@sanity/dashboard/src',
'@sanity/schema': './packages/@sanity/schema/src/_exports',
'@sanity/block-tools': './packages/@sanity/block-tools/src',
'@sanity/components': './packages/@sanity/components/src',
'@sanity/diff': './packages/@sanity/diff/src',
'@sanity/field': './packages/@sanity/field/src',
'@sanity/form-builder': './packages/@sanity/form-builder/src/_exports',
// Required by BarcodeInput in the Ecommerce template
'@sanity/form-builder/lib/FormBuilderInput':
'./packages/@sanity/form-builder/src/FormBuilderInput',
'@sanity/imagetool': './packages/@sanity/imagetool/src',
'@sanity/initial-value-templates': './packages/@sanity/initial-value-templates/src',
'@sanity/mutator': './packages/@sanity/mutator/src',
'@sanity/resolver': './packages/@sanity/resolver/src/resolver',
'@sanity/react-hooks': './packages/@sanity/react-hooks/src',
'@sanity/state-router': './packages/@sanity/state-router/src/_exports',
'@sanity/structure': './packages/@sanity/structure/src',
'@sanity/transaction-collator': './packages/@sanity/transaction-collator/src',
'@sanity/util': './packages/@sanity/util/src/_exports',
'@sanity/types': './packages/@sanity/types/src',
'@sanity/validation': './packages/@sanity/validation/src',
}