Skip to content

Commit

Permalink
fix(treeshakable): use es5 syntax for treeshakable object (Anidetrix#177
Browse files Browse the repository at this point in the history
)

* fix(treeshakable): use es5 syntax for treeshakable object

* resolve conflicts

Co-authored-by: Anton Kudryavtsev <[email protected]>
  • Loading branch information
HeadFox and Anidetrix authored Jan 16, 2022
1 parent d7574fb commit a084834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/postcss/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const loader: Loader<PostCSSLoaderOptions> = {
getters += `get ${name}() { ${injectorCallOnce} return ${value}; },\n`;
}

getters += `inject() { ${injectorCallOnce} },`;
getters += `inject: function inject() { ${injectorCallOnce} },`;
output.push(`var ${modulesVarName} = {${getters}};`);
}
}
Expand Down

0 comments on commit a084834

Please sign in to comment.