-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy path.babelrc.js
More file actions
57 lines (55 loc) · 2.46 KB
/
.babelrc.js
File metadata and controls
57 lines (55 loc) · 2.46 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
const plugins = [];
process.env['COMMUNICATION_REACT_FLAVOR'] === 'stable' &&
plugins.push([
'../../common/scripts/babel-conditional-preprocess',
{
// Deprecated: Use `features` instead.
match: '@conditional-compile-remove-from(stable)',
// A list of features recognized by the conditional compilation preprocessing plugin.
// "demo" is a special feature, used for demo purposes. For this feature,
// The plugin removes any AST node that is preceded by a comment that contains the tag:
// @conditional-compile-remove(demo)
features: [
'call-with-chat-composite',
// Flag to add API only available in beta calling SDK to mocks and internal types.
// This feature should be stabilized whenever calling SDK is stabilized.
'calling-1.4.2-beta.1',
// Participant pane in the `ChatComposite`.
'chat-composite-participant-pane',
// Incoming chat notification in `CallWithChatComposite`.
// TODO: Merge this with `call-with-chat-composite` feature.
'chat-notification-icon',
// API for injecting custom buttons in he control bar for
// `CallComposite` and `CallWithChatComposite`.
'control-bar-button-injection',
// Split buttons in control bar. These are used by `call-with-chat-composite` feature.
// Perhaps we should merge this into the `call-with-chat-composite` feature?
'control-bar-split-buttons',
// Demo feature. Used in live-documentation of conditional compilation.
// Do not use in production code.
'demo',
// Camera switcher in the local video preview tile. These are used by `call-with-chat-composite` feature.
// Perhaps we should merge this into the `call-with-chat-composite` feature?
'local-camera-switcher',
// Adhoc calls to a Teams user.
'teams-adhoc-call',
],
// A list of stabilized features.
// These features can be listed in the conditional compilation directives without
// causing a build failure, but they are ignored by the preprocessing step.
stabilizedFeatures: [
// Demo feature. Used in live-documentation of conditional compilation.
// Do not use in production code.
'stabilizedDemo',
// Ability to upload/download files in message thread.
'file-sharing',
]
}
]);
plugins.push([
'@babel/plugin-syntax-typescript',
{
isTSX: true
}
]);
module.exports = { plugins };