chore: insert scratchFetch into FetchTool's pipeline

This commit is contained in:
Christopher Willis-Ford 2023-03-08 11:23:10 -08:00
parent fd6f3a166a
commit 3283740a04
6 changed files with 439 additions and 1045 deletions

View file

@ -13,9 +13,16 @@ const base = {
test: /\.js$/,
loader: 'babel-loader',
options: {
plugins: [
'@babel/plugin-transform-runtime'
],
presets: [
['@babel/preset-env', {targets: {browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}}]
]
],
// Consider a file a "module" if import/export statements are present, or else consider it a
// "script". Fixes "Cannot assign to read only property 'exports'" when using
// @babel/plugin-transform-runtime with CommonJS files.
sourceType: 'unambiguous'
}
}
]