-
-
Save bmeck/c01f47fa95ca21a5f4901746df61885d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bootstrapModule = COMPILE(` | |
${exportsTemplate( | |
(name) => `let $${name}; export {$${name} as ${name}};\n` | |
)} | |
// reflect api | |
;({ | |
exports: { | |
${exportsTemplate( | |
(name) => `"${name}": { | |
set: (v) => (void $${name} = v), | |
get: (v) => $${name}, | |
};\n` | |
)} | |
}; | |
}); | |
`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment