File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
libs/native-federation/src/utils Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ async function runEsbuild(
220220 await loadPostcssConfiguration ( searchDirectories ) ;
221221 const tailwindConfiguration = postcssConfiguration
222222 ? undefined
223- : await getTailwindConfig ( searchDirectories ) ;
223+ : await getTailwindConfig ( workspaceRoot , searchDirectories ) ;
224224
225225 const outputNames = {
226226 bundles : '[name]' ,
@@ -355,6 +355,7 @@ async function runEsbuild(
355355}
356356
357357async function getTailwindConfig (
358+ workspaceRoot : string ,
358359 searchDirectories : { root : string ; files : Set < string > } [ ] ,
359360) : Promise < { file : string ; package : string } | undefined > {
360361 const tailwindConfigurationPath =
@@ -366,7 +367,9 @@ async function getTailwindConfig(
366367
367368 return {
368369 file : tailwindConfigurationPath ,
369- package : createRequire ( tailwindConfigurationPath ) . resolve ( 'tailwindcss' ) ,
370+ package : createRequire (
371+ path . join ( workspaceRoot , tailwindConfigurationPath ) ,
372+ ) . resolve ( 'tailwindcss' ) ,
370373 } ;
371374}
372375
You can’t perform that action at this time.
0 commit comments