We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0011ad commit 9b01e09Copy full SHA for 9b01e09
src/index.js
@@ -107,15 +107,10 @@ export default function afterEffectsJsx(options = { wrap: false }) {
107
},
108
});
109
110
+ // wrap entire code in get() method
111
magicString
- .prepend('function get() {\n')
112
+ .prepend('get() {\n')
113
.append(`\nreturn {${exports.join(',\n\t')}}\n}`);
-
114
- const asString = magicString
115
- .toString()
116
- .replace(`function get() {`, `get() {`);
117
118
- magicString = new MagicString(asString);
119
} else {
120
// Remove non exported nodes and convert
121
// to object property style compatible syntax
0 commit comments