mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-05 20:50:22 -06:00
Extension developers should not have to remember what comes form where between two different globals. This change makes Extension effectively a facade (Facade Pattern) containing the behaviors of both extensions and runtime modules.
4 lines
120 B
JavaScript
4 lines
120 B
JavaScript
console.log('importing something...');
|
|
const { testval } = extension.import('exports_something');
|
|
console.log(testval);
|