Skip to content

Commit 3080fd9

Browse files
committed
fix: addDependency directly so watch mode works
1 parent 8ad54a0 commit 3080fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app-config-webpack/src/loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as wp from 'webpack';
2-
import { getOptions, stringifyRequest } from 'loader-utils';
2+
import { getOptions } from 'loader-utils';
33
import { loadValidatedConfig } from '@app-config/main';
44
import type { Options } from './index';
55

@@ -14,7 +14,7 @@ const loader: wp.loader.Loader = function AppConfigLoader() {
1414
loadValidatedConfig(loading, schemaLoading)
1515
.then(({ fullConfig, filePaths, validationFunctionCode }) => {
1616
if (filePaths) {
17-
filePaths.forEach((filePath) => this.addDependency(stringifyRequest(this, filePath)));
17+
filePaths.forEach((filePath) => this.addDependency(filePath));
1818
}
1919

2020
const generateText = (config: string) => {

0 commit comments

Comments
 (0)