From 9c81c193a988d8555df6b22ea68fefe28aad436f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Sun, 30 Apr 2023 12:40:00 +0800 Subject: [PATCH] docs: v1.3.1 --- README.md | 2 +- README.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 210f269..76d8b3f 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ dynamicImport({ filter(id) { // `node_modules` is exclude by default, so we need to include it explicitly // https://github.com/vite-plugin/vite-plugin-dynamic-import/blob/v1.3.0/src/index.ts#L133-L135 - if (/node_modules\/(?!\.vite\/)/.test(id)) { + if (id.includes('/node_modules/foo')) { return true } } diff --git a/README.zh-CN.md b/README.zh-CN.md index e36bd4e..6d54dd0 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -40,7 +40,7 @@ dynamicImport({ filter(id) { // 默认会排除 `node_modules`,所以必须显式的包含它 // https://github.com/vite-plugin/vite-plugin-dynamic-import/blob/v1.3.0/src/index.ts#L133-L135 - if (/node_modules\/(?!\.vite\/)/.test(id)) { + if (id.includes('/node_modules/foo')) { return true } }