File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- presets : [ 'module:metro-react-native-babel-preset' ] ,
2
+ presets : [
3
+ [ 'module:react-native-builder-bob/babel-preset' , { modules : 'commonjs' } ] ,
4
+ ] ,
3
5
} ;
Original file line number Diff line number Diff line change 143
143
},
144
144
"codegenConfig" : {
145
145
"name" : " RNMytrackerSpec" ,
146
- "type" : " all " ,
146
+ "type" : " modules " ,
147
147
"jsSrcsDir" : " src" ,
148
148
"outputDir" : {
149
149
"ios" : " ios/generated" ,
158
158
"source" : " src" ,
159
159
"output" : " lib" ,
160
160
"targets" : [
161
- " commonjs" ,
162
- " module" ,
161
+ " codegen" ,
162
+ [
163
+ " commonjs" ,
164
+ {
165
+ "esm" : true
166
+ }
167
+ ],
168
+ [
169
+ " module" ,
170
+ {
171
+ "esm" : true
172
+ }
173
+ ],
163
174
[
164
175
" typescript" ,
165
176
{
166
- "project" : " tsconfig.build.json"
177
+ "project" : " tsconfig.build.json" ,
178
+ "esm" : true
167
179
}
168
180
]
169
181
]
You can’t perform that action at this time.
0 commit comments