Now it builds
This commit is contained in:
@ -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).
|
||||
|
||||
@ -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) => {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
7
vite.config.js
Normal file
@ -0,0 +1,7 @@
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
chunkSizeWarningLimit: 1600
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user