File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ module.exports = {
2525 // externals: "all"
2626 externals : [ "knex" , "sharp" ] ,
2727 // Set default file extensions to use the raw-loader with
28- rawFileExtensions : [ "pem" , "txt" ]
28+ rawFileExtensions : [ "pem" , "txt" ] ,
29+ sourceType : "module" // "script" | "module" | "unambiguous"
2930 }
3031} ;
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ const concatText = config.options.concatText;
3636const forceExclude = config . options . forceExclude ;
3737const ignorePackages = config . options . ignorePackages ;
3838const rawFileExtensions = config . options . rawFileExtensions ;
39+ const sourceType = config . options . sourceType ;
3940const fixPackages = convertListToObject ( config . options . fixPackages ) ;
4041const tsConfigPath = path . resolve ( servicePath , config . options . tsConfig ) ;
4142
@@ -138,6 +139,7 @@ function babelLoader() {
138139 // Disable compresisng cache files to speed up caching
139140 cacheCompression : false ,
140141 plugins : plugins . map ( require . resolve ) ,
142+ sourceType,
141143 presets : [
142144 [
143145 require . resolve ( "@babel/preset-env" ) ,
You can’t perform that action at this time.
0 commit comments