80ac32a268
The extensions app is another part of the code base that is largely separate from the main code base, and can therefore be ported to ESM before the big switch. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2786>
11 lines
319 B
Plaintext
11 lines
319 B
Plaintext
import {programInvocationName, programArgs} from 'system';
|
|
|
|
imports.package.init({
|
|
name: '@PACKAGE_NAME@',
|
|
version: '@PACKAGE_VERSION@',
|
|
prefix: '@prefix@',
|
|
libdir: '@libdir@',
|
|
});
|
|
const {main} = await import(`${imports.package.moduledir}/main.js`);
|
|
await main([programInvocationName, ...programArgs]);
|