File tree Expand file tree Collapse file tree 3 files changed +27
-23
lines changed Expand file tree Collapse file tree 3 files changed +27
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ sourceMaps : true ,
3
+ presets : [
4
+ [
5
+ "@babel/preset-env" ,
6
+ {
7
+ targets : {
8
+ esmodules : true ,
9
+ } ,
10
+ // We want to output ES modules for the final build (mostly to ensure that
11
+ // async imports work correctly). However, jest doesn't support ES modules very
12
+ // well yet (see https://github.com/jestjs/jest/issues/9430), so we use commonjs
13
+ // when testing.
14
+ modules : process . env . NODE_ENV === "test" ? "commonjs" : false ,
15
+ } ,
16
+ ] ,
17
+ "@babel/preset-typescript" ,
18
+ ] ,
19
+ plugins : [
20
+ "@babel/plugin-proposal-numeric-separator" ,
21
+ "@babel/plugin-proposal-class-properties" ,
22
+ "@babel/plugin-proposal-object-rest-spread" ,
23
+ "@babel/plugin-syntax-dynamic-import" ,
24
+ "@babel/plugin-transform-runtime" ,
25
+ ] ,
26
+ } ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import { ISendEventResponse } from "../@types/requests";
35
35
import { FileType } from "../http-api" ;
36
36
import { KnownMembership } from "../@types/membership" ;
37
37
import { RoomPowerLevelsEventContent , SpaceChildEventContent } from "../@types/state_events" ;
38
- import { EncryptedFile , FileContent } from "../@types/media" ;
38
+ import type { EncryptedFile , FileContent } from "../@types/media" ;
39
39
40
40
/**
41
41
* The recommended defaults for a tree space's power levels. Note that this
You can’t perform that action at this time.
0 commit comments