mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-25 21:50:59 -04:00
fix: resolve scratch-*/src/index.js for expose-loader
require.resolve is a nodejs api that resolves as node resolves. An enhanced-resolve instance, the library webpack uses, could resolve as webpack will or we can use some slightly more manual definitions here for exposing parts of scratch on the global object for the playground's benchmark to use.
This commit is contained in:
parent
057e89b1e0
commit
fda288506a
1 changed files with 3 additions and 3 deletions
|
@ -119,15 +119,15 @@ module.exports = [
|
|||
loader: 'expose-loader?Blockly'
|
||||
},
|
||||
{
|
||||
test: require.resolve('scratch-audio'),
|
||||
test: require.resolve('scratch-audio/src/index.js'),
|
||||
loader: 'expose-loader?AudioEngine'
|
||||
},
|
||||
{
|
||||
test: require.resolve('scratch-storage'),
|
||||
test: require.resolve('scratch-storage/src/index.js'),
|
||||
loader: 'expose-loader?ScratchStorage'
|
||||
},
|
||||
{
|
||||
test: require.resolve('scratch-render'),
|
||||
test: require.resolve('scratch-render/src/index.js'),
|
||||
loader: 'expose-loader?ScratchRender'
|
||||
}
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue