mirror of
https://github.com/hariroshan/elm-native-library.git
synced 2024-12-11 14:51:58 +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;
|