Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
onEXHovia committed Dec 16, 2024
1 parent 4c8d076 commit fa480fa
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions assets/js/stimulus.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ import { startStimulusApp } from '@symfony/stimulus-bridge';
// eslint-disable-next-line import/prefer-default-export
export const sonataApplication = startStimulusApp();

const definitions = definitionsFromContext(require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true,
/\.[jt]sx?$/
));
const definitions = definitionsFromContext(
require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true,
/\.[jt]sx?$/
)
);

definitions.forEach((definition) => {
definition.identifier = `sonata-${definition.identifier}`;
});

sonataApplication.load(definitions);
sonataApplication.load(definitions);

0 comments on commit fa480fa

Please sign in to comment.