GrimoireGL / GrimoireJS

A WebGL framework for Web development.
https://grimoire.gl
MIT License
350 stars 24 forks source link

[new feat] implemnent gr#import #548

Closed moajo closed 6 years ago

moajo commented 6 years ago

gr#import is an alternative to gr.lib.

You can reference modules in the same path as typescript import.

let MaterialContainer =  gr.import("grimoirejs-fundamental/ref/Components/MaterialContainer");
let GomlNode = gr.import("grimoirejs/ref/Core/Node");

if plugin is not found, an error will occur. if plugin is found but module is not found, a different error will occur.