forked from aws-amplify/amplify-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup-externals.js
93 lines (81 loc) · 2.01 KB
/
rollup-externals.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
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
const core_externals = ['aws-sdk', 'aws-sdk/global', 'react-native', 'url'];
const analytics_externals = [
'@aws-amplify/cache',
'@aws-amplify/core',
'uuid',
'aws-sdk/clients/pinpoint',
'react-native',
'aws-sdk/clients/kinesis',
];
const api_externals = [
'axios',
'graphql',
'graphql/language/ast',
'graphql/language/parser',
'graphql/language/printer',
'uuid',
'zen-observable',
'@aws-amplify/cache',
'@aws-amplify/core',
];
const auth_externals = [
'@aws-amplify/cache',
'@aws-amplify/core',
'amazon-cognito-auth-js',
'amazon-cognito-identity-js',
];
const cache_externals = ['@aws-amplify/core'];
const storage_externals = ['@aws-amplify/core', 'aws-sdk/clients/s3'];
const interactions_externals = [
'aws-sdk/clients/lexruntime',
'@aws-amplify/core',
'handlebars',
];
const xr_externals = ['@aws-amplify/core'];
const pubsub_externals = [
'@aws-amplify/core',
'@types/zen-observable',
'uuid',
'zen-observable',
'paho-mqtt',
];
const amplify_externals = [
'@aws-amplify/analytics',
'@aws-amplify/api',
'@aws-amplify/auth',
'@aws-amplify/cache',
'@aws-amplify/core',
'@aws-amplify/interactions',
'@aws-amplify/pubsub',
'@aws-amplify/storage',
'@aws-amplify/ui',
'@aws-amplify/xr',
];
const aws_amplify_react = [
'@aws-amplify/auth',
'@aws-amplify/analytics',
'@aws-amplify/api',
'@aws-amplify/core',
'@aws-amplify/interactions',
'@aws-amplify/storage',
'@aws-amplify/ui',
'@aws-amplify/ui/dist/style.css',
'@aws-amplify/xr',
'react',
'regenerator-runtime/runtime',
'qrcode.react',
];
const rollup_externals = {
'@aws-amplify/analytics': analytics_externals,
'@aws-amplify/api': api_externals,
'@aws-amplify/auth': auth_externals,
'aws-amplify': amplify_externals,
'aws-amplify-react': aws_amplify_react,
'@aws-amplify/cache': cache_externals,
'@aws-amplify/core': core_externals,
'@aws-amplify/interactions': interactions_externals,
'@aws-amplify/pubsub': pubsub_externals,
'@aws-amplify/storage': storage_externals,
'@aws-amplify/xr': xr_externals,
};
module.exports = rollup_externals;