mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-08-13 23:09:58 -04:00
chore: insert scratchFetch into FetchTool's pipeline
This commit is contained in:
parent
fd6f3a166a
commit
3283740a04
6 changed files with 439 additions and 1045 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue