mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-22 19:18:31 +00:00
Update README.md
replace extend with evalScope
This commit is contained in:
parent
c3f03f50b3
commit
729b4e18ab
@ -17,7 +17,10 @@ npm i @strudel.cycles/eval --save
|
|||||||
import { evaluate, extend } from '@strudel.cycles/eval';
|
import { evaluate, extend } from '@strudel.cycles/eval';
|
||||||
import * as strudel from '@strudel.cycles/core';
|
import * as strudel from '@strudel.cycles/core';
|
||||||
|
|
||||||
extend(strudel); // add strudel to eval scope
|
evalScope(
|
||||||
|
import('@strudel.cycles/core'),
|
||||||
|
// import other strudel packages here
|
||||||
|
); // add strudel to eval scope
|
||||||
|
|
||||||
async function run(code) {
|
async function run(code) {
|
||||||
const { pattern } = await evaluate(code);
|
const { pattern } = await evaluate(code);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user