Is it enough? I think you need to replace the JS extension with the JSON language extension to achieve this functionality as shown in the official demo. Instead of using basicDark, javascript({ jsx: true }), you should use extensions={[json()]} to achieve the desired result.