JSFiddle - React, Tailwind, and code Playground
by wittnl
HTML
<html>
<body>
<h1>Require.js example</h1>
<p>
(Check the console)
</p>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.js"></script>
<script type="text/javascript">
console.log(requirejs);
requirejs.config({
paths: {
wavesurfer: 'https://unpkg.com/[email protected]/dist/wavesurfer',
'wavesurfer-regions': 'https://unpkg.com/[email protected]/dist/plugin/wavesurfer.regions.min'
}
});
require(['wavesurfer', 'wavesurfer-regions'], function(wavesurfer, regions) {
console.dir(wavesurfer);
console.dir(regions);
});
</script>
</body>
</html>