mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
style version log + check if already loaded
This commit is contained in:
parent
f8ada70fe7
commit
a437c698eb
@ -18,6 +18,15 @@ export * from './speak.mjs';
|
||||
export { default as gist } from './gist.js';
|
||||
import * as p from './package.json';
|
||||
export const version = p.version;
|
||||
console.log('🌀🌀🌀 @strudel.cycles/core@' + version);
|
||||
|
||||
// export * from './value.mjs';
|
||||
console.log(
|
||||
'%c 🌀 @strudel.cycles/core version ' + version + ' 🌀',
|
||||
'background-color: black;color:white;padding:4px;border-radius:15px',
|
||||
);
|
||||
if (window._strudelLoaded) {
|
||||
console.warn(
|
||||
`@strudel.cycles/core was loaded more than once...
|
||||
This might happen when you have multiple versions of strudel installed.
|
||||
Please check with "npm ls @strudel.cycles/core".`,
|
||||
);
|
||||
}
|
||||
window._strudelLoaded = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user