-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
featureNew feature or requestNew feature or request
Description
It would be great if we could import third party libraries into the playground
Like this
import kebabCase from 'https://esm.sh/kebab-case'
add([
text(kebabCase("Hello World")),
pos(center())
])The only way to do so for now in the playground seems to be
import('https://unpkg.com/kebab-case')
.then(k=>k.default)
.then(kebab=>{
add([
text(kebab('Hello World')),
pos(center())
])
})Any way I can preload them before the game starts ? Using load function did not work in the below example
const kebab = load(import('https://unpkg.com/kebab-case').then(k=>k.default))
add([
text(kebab.data('Hello World')),
pos(center())
])lajbel
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request