fix: remove the play function from compose configs

this disallows setting a global play function in project annotations
This commit is contained in:
Yann Braga 2022-02-25 12:47:03 +01:00
parent 1e739163f0
commit 537b6769a8
2 changed files with 0 additions and 4 deletions

View File

@ -124,13 +124,11 @@ describe('composeConfigs', () => {
expect(
composeConfigs([
{
play: 'play-1',
render: 'render-1',
renderToDOM: 'renderToDOM-1',
applyDecorators: 'applyDecorators-1',
},
{
play: 'play-2',
render: 'render-2',
renderToDOM: 'renderToDOM-2',
applyDecorators: 'applyDecorators-2',
@ -146,7 +144,6 @@ describe('composeConfigs', () => {
globals: {},
globalTypes: {},
loaders: [],
play: 'play-1',
render: 'render-1',
renderToDOM: 'renderToDOM-1',
applyDecorators: 'applyDecorators-1',

View File

@ -37,7 +37,6 @@ export function composeConfigs<TFramework extends AnyFramework>(
globalTypes: getObjectField(moduleExportList, 'globalTypes'),
loaders: getArrayField(moduleExportList, 'loaders'),
render: getSingletonField(moduleExportList, 'render'),
play: getSingletonField(moduleExportList, 'play'),
renderToDOM: getSingletonField(moduleExportList, 'renderToDOM'),
applyDecorators: getSingletonField(moduleExportList, 'applyDecorators'),
};