Now it builds

This commit is contained in:
2023-08-06 10:37:45 +02:00
parent b7d38af0d3
commit 6d2ede1445
5 changed files with 14 additions and 2 deletions

View File

@ -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).

View File

@ -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) => {

View File

@ -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<acorn.Parser['parseLiteral']>) {
// @ts-ignore
const node = super.parseLiteral(...args);
// Check if the literal is a string and if it's wrapped in single quotes

View File

@ -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<HTMLElement>;
Array.from(gutters).forEach(gutter => gutter.style.backgroundColor = color);
// Reset to original color after duration

7
vite.config.js Normal file
View File

@ -0,0 +1,7 @@
import { defineConfig } from 'vite';
export default defineConfig({
build: {
chunkSizeWarningLimit: 1600
}
});