File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const rmsText = ref("-100");
3737let melspectrogramNode;
3838let analyserNode;
3939let melspectrumBuffer;
40- const melspectogramProcessorName = melspectrogramProcessorURL . split ( " / " ). at ( - 1 ). split ( " . " )[ 0 ] ;
40+ const melspectogramProcessorName = " melspectrogram-processor " ;
4141let rmsAnalyser;
4242
4343const fontColor = " #6c6c6c" ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class RMSAnalyser {
3737 this . essentiaNode ;
3838 this . animationID ;
3939
40- this . processorName = processorUrl . split ( "/" ) . at ( - 1 ) . split ( "." ) [ 0 ] ;
40+ this . processorName = "rms-processor" ;
4141 }
4242
4343 async registerNode ( ) {
Original file line number Diff line number Diff line change @@ -44,6 +44,14 @@ export default defineConfig({
4444 publicDir : '../public' ,
4545 optimizeDeps : {
4646 exclude : [ "playground-elements" ]
47- }
47+ } ,
48+ build : {
49+ assetsInlineLimit : ( filepath , content ) => {
50+ if ( filepath . includes ( 'processor.js' ) ) {
51+ return false ; // 1MB
52+ }
53+ return undefined ; // default 4kb
54+ }
55+ } ,
4856 // assetsInclude: ["**/*.wasm"]
4957} )
You can’t perform that action at this time.
0 commit comments