mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 13:08:28 +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';
|
export { default as gist } from './gist.js';
|
||||||
import * as p from './package.json';
|
import * as p from './package.json';
|
||||||
export const version = p.version;
|
export const version = p.version;
|
||||||
console.log('🌀🌀🌀 @strudel.cycles/core@' + version);
|
console.log(
|
||||||
|
'%c 🌀 @strudel.cycles/core version ' + version + ' 🌀',
|
||||||
// export * from './value.mjs';
|
'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