mirror of
https://github.com/hariroshan/elm-native-library.git
synced 2024-12-03 18:25:00 +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;
|