From 6fbe0d0b7a74fbe40eb84c9ab5106d0799c76dec Mon Sep 17 00:00:00 2001 From: Shigma Date: Sun, 17 Sep 2023 02:32:16 +0800 Subject: [PATCH] feat(loader): do not check writable for interpolation --- packages/loader/src/shared.ts | 1 - packages/loader/tests/{index.spec.ts => loader.spec.ts} | 0 2 files changed, 1 deletion(-) rename packages/loader/tests/{index.spec.ts => loader.spec.ts} (100%) diff --git a/packages/loader/src/shared.ts b/packages/loader/src/shared.ts index 4d403dd9dc..4b4c4df905 100644 --- a/packages/loader/src/shared.ts +++ b/packages/loader/src/shared.ts @@ -218,7 +218,6 @@ export abstract class Loader { } interpolate(source: any) { - if (!this.writable) return source if (typeof source === 'string') { return interpolate(source, this.params, /\$\{\{(.+?)\}\}/g) } else if (!source || typeof source !== 'object') { diff --git a/packages/loader/tests/index.spec.ts b/packages/loader/tests/loader.spec.ts similarity index 100% rename from packages/loader/tests/index.spec.ts rename to packages/loader/tests/loader.spec.ts