Skip to content

Commit

Permalink
Pluralize function name
Browse files Browse the repository at this point in the history
  • Loading branch information
nedjulius committed Dec 11, 2023
1 parent 27dcb73 commit 0fcd813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/esbuild-plugin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function stylexPlugin({
presets,
plugins: [
...plugins,
...getFlowOrTypeScriptBabelSyntaxPlugin(currFilePath),
...getFlowOrTypeScriptBabelSyntaxPlugins(currFilePath),
jsxSyntaxPlugin,
[
stylexBabelPlugin,
Expand Down Expand Up @@ -131,7 +131,7 @@ function getEsbuildLoader(fileName) {
return 'js';
}

function getFlowOrTypeScriptBabelSyntaxPlugin(fileName) {
function getFlowOrTypeScriptBabelSyntaxPlugins(fileName) {
if (/\.jsx?/.test(path.extname(fileName))) {
return [flowSyntaxPlugin, hermesParserPlugin];
}
Expand Down

0 comments on commit 0fcd813

Please sign in to comment.