build: [UEPR-17] Cnanged resolve to use path defined in scratch-render exports

This commit is contained in:
MiroslavDionisiev 2024-06-13 16:37:01 +03:00
parent 25b3fe99e6
commit 21a8bd6982

View file

@ -92,7 +92,7 @@ const playgroundBuilder = webBuilder.clone()
}
})
.addModuleRule({
test: require.resolve('scratch-render/src/index.js'),
test: require.resolve('scratch-render'),
loader: 'expose-loader',
options: {
exposes: 'ScratchRender'