mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-08-28 22:12:42 -04:00
Depend on script dependencies for downstream webpack
Downstream webpack will need any dependencies src/ depends on so it can successfully build. Also if multiple packages being built into a larger script share a common dependency version range, they can share the dependency instead of duplicating it. This will save built file size, execution time, and memory.
This commit is contained in:
parent
6cbe1b9e0f
commit
d5d6ab9eb8
2 changed files with 11 additions and 4 deletions
|
@ -20,5 +20,10 @@ module.exports = {
|
|||
presets: ['es2015']
|
||||
}
|
||||
}]
|
||||
},
|
||||
externals: {
|
||||
'audio-context': true,
|
||||
'minilog': true,
|
||||
'startaudiocontext': true
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue