File tree Expand file tree Collapse file tree 3 files changed +2349
-556
lines changed
libs/native-federation/src/utils Expand file tree Collapse file tree 3 files changed +2349
-556
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,12 @@ import {
10
10
createCompilerPlugin ,
11
11
transformSupportedBrowsersToTargets ,
12
12
getSupportedBrowsers ,
13
+ generateSearchDirectories ,
14
+ findTailwindConfiguration ,
13
15
} from '@angular/build/private' ;
14
16
15
17
import { createCompilerPluginOptions } from './create-compiler-options' ;
16
18
import { BuilderContext } from '@angular-devkit/architect' ;
17
- import { findTailwindConfigurationFile } from '@angular-devkit/build-angular/src/utils/tailwind' ;
18
19
19
20
import {
20
21
normalizeOptimization ,
@@ -201,10 +202,12 @@ async function runEsbuild(
201
202
builderOptions . optimization
202
203
) ;
203
204
const sourcemapOptions = normalizeSourceMaps ( builderOptions . sourceMap ) ;
204
- const tailwindConfigurationPath = await findTailwindConfigurationFile (
205
+ const searchDirectories = await generateSearchDirectories ( [
206
+ projectRoot ,
205
207
workspaceRoot ,
206
- projectRoot
207
- ) ;
208
+ ] ) ;
209
+ const tailwindConfigurationPath =
210
+ findTailwindConfiguration ( searchDirectories ) ;
208
211
209
212
const fullProjectRoot = path . join ( workspaceRoot , projectRoot ) ;
210
213
const resolver = createRequire ( fullProjectRoot + '/' ) ;
You can’t perform that action at this time.
0 commit comments