jazz-soft/JZZ

Using plugins with ES6 import syntax?

henrikvilhelmberglund opened this issue · 4 comments

I'm using JZZ with ES6 syntax (import JZZ from "jzz";) and would like to use some plugins like JZZ-synth-Tiny, however it only lists a CommonJS import statement.

Is it possible to import and use these plugins using ES6 syntax?

Please let me know which environment you are using for I could suggest the best solution.

Please let me know which environment you are using for I could suggest the best solution.

I'm using SvelteKit, so I guess that means Vite.

I'm not very familiar with Vite, but you can try this:

import JZZ from "jzz";
import TINY from "jzz-synth-tiny";
TINY(JZZ);

Please let me know if that works for you.

import JZZ from "jzz";
import TINY from "jzz-synth-tiny";
TINY(JZZ);

It does, thanks a lot!