diff --git a/src/API.ts b/src/API.ts index bf836d8..dce417d 100644 --- a/src/API.ts +++ b/src/API.ts @@ -135,6 +135,7 @@ export class UserAPI { scale = scale rate(rate: number): void { + rate = rate; // TODO: Implement this. This function should change the rate at which the global script // is evaluated. This is useful for slowing down the script, or speeding it up. The default // would be 1.0, which is the current rate (very speedy). diff --git a/src/TransportProcessor.ts b/src/TransportProcessor.ts index efb0598..0e20b03 100644 --- a/src/TransportProcessor.ts +++ b/src/TransportProcessor.ts @@ -1,12 +1,14 @@ class TransportProcessor extends AudioWorkletProcessor { started: boolean; + options: object; constructor(options: AudioWorkletNodeOptions) { super(); this.port.addEventListener("message", this.handleMessage); this.port.start(); this.started = false; + this.options = options; } handleMessage = (message: MessageEvent) => { diff --git a/src/Walker.ts b/src/Walker.ts index df12dcb..848ce3f 100644 --- a/src/Walker.ts +++ b/src/Walker.ts @@ -1,11 +1,13 @@ import * as acorn from 'acorn'; -import * as walk from 'acorn-walk'; +// import * as walk from 'acorn-walk'; import * as astring from 'astring'; // Create a custom Acorn plugin function myPlugin(Parser: typeof acorn.Parser): any { return class extends Parser { + // @ts-ignore parseLiteral(...args: Parameters) { + // @ts-ignore const node = super.parseLiteral(...args); // Check if the literal is a string and if it's wrapped in single quotes diff --git a/src/main.ts b/src/main.ts index 95c1fbb..78af735 100644 --- a/src/main.ts +++ b/src/main.ts @@ -669,7 +669,7 @@ export class Editor { flashBackground(color: string, duration: number): void { // Set the flashing color this.view.dom.style.backgroundColor = color; - const gutters = this.view.dom.getElementsByClassName("cm-gutter"); + const gutters = this.view.dom.getElementsByClassName("cm-gutter") as HTMLCollectionOf; Array.from(gutters).forEach(gutter => gutter.style.backgroundColor = color); // Reset to original color after duration diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..222770a --- /dev/null +++ b/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite'; + +export default defineConfig({ + build: { + chunkSizeWarningLimit: 1600 + } +}); \ No newline at end of file