mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-08-01 17:09:58 -04:00
fix: polyfill 'fetch' for Node target
This commit is contained in:
parent
d331232a70
commit
ebcbcdbae1
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
const path = require('path');
|
||||
const {ProvidePlugin} = require('webpack');
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
|
||||
const base = {
|
||||
|
@ -64,6 +65,11 @@ module.exports = [
|
|||
'js-md5': true,
|
||||
'localforage': true,
|
||||
'text-encoding': true
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new ProvidePlugin({
|
||||
fetch: ['node-fetch', 'default']
|
||||
})
|
||||
]
|
||||
})
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue