From a44fb22c917c8d52968e6fb9dec6101cba5d2d07 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Tue, 2 Jul 2024 20:37:56 +0900 Subject: [PATCH] test: dependency with multiple files --- playground/assets/dep-with-asset/dir/path.js | 1 + playground/assets/dep-with-asset/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 playground/assets/dep-with-asset/dir/path.js diff --git a/playground/assets/dep-with-asset/dir/path.js b/playground/assets/dep-with-asset/dir/path.js new file mode 100644 index 00000000000000..400b19cc12233c --- /dev/null +++ b/playground/assets/dep-with-asset/dir/path.js @@ -0,0 +1 @@ +export const imageUrl = new URL('../asset.png', import.meta.url).href diff --git a/playground/assets/dep-with-asset/index.js b/playground/assets/dep-with-asset/index.js index a401c8b145872e..3036771f8b0096 100644 --- a/playground/assets/dep-with-asset/index.js +++ b/playground/assets/dep-with-asset/index.js @@ -1 +1 @@ -export const imageUrl = new URL('./asset.png', import.meta.url).href +export { imageUrl } from './dir/path.js'