Skip to content

Commit 74444fa

Browse files
committed
feat: uses the webpack regex in interception of resolve requests
1 parent 8ff1af8 commit 74444fa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app-config-webpack/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ export default class AppConfigPlugin {
4545
async (resolve?: { request: string }) => {
4646
if (!resolve) return;
4747

48-
if (
49-
resolve.request === '@app-config/main' ||
50-
resolve.request === '@lcdev/app-config' ||
51-
resolve.request === 'app-config'
52-
) {
48+
if (regex.test(resolve.request)) {
5349
const { filePaths } = await loadValidatedConfig(
5450
this.loadingOptions,
5551
this.schemaLoadingOptions,

0 commit comments

Comments
 (0)