mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
Massive overhaul: the renderers are now classes that implement Renderer; replaced webpack and rollup with vite; converted bundle-contents to "core" and "full" bundle profiles; renamed "inclusions" to "staticAssets", which are "url" base64-encoded images and "raw" text strings; renamed the Matrix component module to the JSX extension; built out a test scaffold at tools/test/index.html to manually test the various deploy options.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
export default async () => {
|
||||
let glMatrix, createREGL, inclusions;
|
||||
let glMatrix, createREGL, staticAssets;
|
||||
|
||||
try {
|
||||
glMatrix = await import("gl-matrix");
|
||||
createREGL = (await import("regl")).default;
|
||||
inclusions = (await import("./inclusions.js")).default;
|
||||
staticAssets = (await import("./staticAssets.js")).default;
|
||||
} catch {
|
||||
const loadJS = (src) =>
|
||||
new Promise((resolve, reject) => {
|
||||
@@ -15,8 +15,8 @@ export default async () => {
|
||||
await Promise.all([loadJS("lib/regl.min.js"), loadJS("lib/gl-matrix.js")]);
|
||||
glMatrix = globalThis.glMatrix;
|
||||
createREGL = globalThis.createREGL;
|
||||
inclusions = [];
|
||||
staticAssets = [];
|
||||
}
|
||||
|
||||
return { glMatrix, createREGL, inclusions };
|
||||
return { glMatrix, createREGL, staticAssets };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user