Skip to content

Commit 9832b5e

Browse files
authored
fix(react-email): Module importing for separate tailwind configs (#2042)
1 parent 70ce077 commit 9832b5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-email/src/utils/caniemail/tailwind/get-tailwind-config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const getTailwindConfig = async (
7474
} catch (exception) {
7575
console.warn(exception);
7676
console.warn(
77-
`Tried reading the config defined directly in the Tailwind component but was unable to, probably because it isn't a valid javascript object by itself.`,
77+
`Tried reading the config defined directly in the Tailwind component but was unable to, probably because it can't run by itself.`,
7878
);
7979
}
8080
}
@@ -113,7 +113,7 @@ const getConfigFromImport = async (
113113
}
114114

115115
const configBuildResult = await esbuild.build({
116-
bundle: false,
116+
bundle: true,
117117
entryPoints: [configFilepath],
118118
platform: 'node',
119119
write: false,
@@ -123,7 +123,7 @@ const getConfigFromImport = async (
123123
const configFile = configBuildResult.outputFiles[0];
124124
if (configFile === undefined) {
125125
throw new Error(
126-
'Could not build config file as it was found as undefined, this is a bug please open an issue.',
126+
'Could not build config file as it was found as undefined, this is most likely a bug, please open an issue.',
127127
);
128128
}
129129
const configModule = runBundledCode(configFile.text, configFilepath);

0 commit comments

Comments
 (0)