Using plugins with ES6 import syntax?
henrikvilhelmberglund opened this issue · 4 comments
henrikvilhelmberglund commented
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?
jazz-soft commented
Please let me know which environment you are using for I could suggest the best solution.
henrikvilhelmberglund commented
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.
jazz-soft commented
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.
henrikvilhelmberglund commented
import JZZ from "jzz";
import TINY from "jzz-synth-tiny";
TINY(JZZ);
It does, thanks a lot!