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 @@ -28,5 +28,6 @@ module.exports = {
2828 externals : [ "knex" , "sharp" ] ,
2929 // Set default file extensions to use the raw-loader with
3030 rawFileExtensions : [ "pem" , "txt" ] ,
31- } ,
31+ sourceType : "module" // "script" | "module" | "unambiguous"
32+ }
3233} ;
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ const esbuildNodeVersion = "node" + nodeVersion;
3737const forceExclude = config . options . forceExclude ;
3838const ignorePackages = config . options . ignorePackages ;
3939const rawFileExtensions = config . options . rawFileExtensions ;
40+ const sourceType = config . options . sourceType ;
4041const fixPackages = convertListToObject ( config . options . fixPackages ) ;
4142const tsConfigPath = path . resolve ( servicePath , config . options . tsConfig ) ;
4243
@@ -139,6 +140,7 @@ function babelLoader() {
139140 // Disable compresisng cache files to speed up caching
140141 cacheCompression : false ,
141142 plugins : plugins . map ( require . resolve ) ,
143+ sourceType,
142144 presets : [
143145 [
144146 require . resolve ( "@babel/preset-env" ) ,
You can’t perform that action at this time.
0 commit comments