mirror of
https://github.com/hariroshan/elm-native-library.git
synced 2024-11-28 01:33:43 +03:00
13 lines
231 B
JavaScript
13 lines
231 B
JavaScript
function wrapElmCode(code) {
|
|
return `
|
|
function wrapper() {
|
|
let output = {};
|
|
(function () { ${code} }).call(output);
|
|
return output.Elm;
|
|
}
|
|
export default wrapper;
|
|
`;
|
|
}
|
|
|
|
module.exports = wrapElmCode;
|