Skip to content

Commit

Permalink
Update to support Vue 3 build
Browse files Browse the repository at this point in the history
This might not fix all related issues, but it does address one that we found.  Namely that the latest @vue-cli has updated to use fork-typescript-checker v5 and that new version requires different parameters.  I did a basic change using the approach seen here: vuejs/vue-cli@1aaa592

Solves ZachJW34#97
  • Loading branch information
evanfuture authored Sep 9, 2020
1 parent 6781f59 commit 93f042d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/vue/src/webpack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { BuilderContext } from '@angular-devkit/architect';
import { getSystemPath, join, normalize, Path } from '@angular-devkit/core';
import {loadModule, semver} from '@vue/cli-shared-utils';
import { BrowserBuilderSchema } from './builders/browser/schema';
import { LibraryBuilderSchema } from './builders/library/schema';

Expand Down Expand Up @@ -51,7 +52,11 @@ export function modifyTsConfigPaths(
return loaderOptions;
});
config.plugin('fork-ts-checker').tap((args) => {
args[0].tsconfig = tsConfigPath;
const vue = loadModule('vue', getSystemPath(normalize(context.workspaceRoot)));
const isVue3 = (vue && semver.major(vue.version) === 3);
if (!isVue3) {
args[0].tsconfig = tsConfigPath;
}
return args;
});
}
Expand Down

0 comments on commit 93f042d

Please sign in to comment.