mirror of
https://github.com/hariroshan/elm-native-library.git
synced 2024-12-02 23:35:02 +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;
|