Skip to content

Commit

Permalink
fix(platform): use workspace root when discovering packages for SSR t…
Browse files Browse the repository at this point in the history
…ransform (#1280)
  • Loading branch information
brandonroberts authored Aug 19, 2024
1 parent 312fea3 commit fa82328
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/platform/src/lib/deps-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { VERSION } from '@angular/compiler-cli';
import { Plugin } from 'vite';
import { crawlFrameworkPkgs } from 'vitefu';
import { relative } from 'node:path';

import { Options } from './options.js';

Expand Down Expand Up @@ -49,10 +48,8 @@ export function depsPlugin(options?: Options): Plugin[] {
{
name: 'analogjs-auto-discover-deps',
async config(config, { command }) {
const root = relative(workspaceRoot, config.root || '.') || '.';

const pkgConfig = await crawlFrameworkPkgs({
root,
root: workspaceRoot,
isBuild: command === 'build',
viteUserConfig: config,
isSemiFrameworkPkgByJson(pkgJson) {
Expand Down

0 comments on commit fa82328

Please sign in to comment.