From 684aabbc252fe895e8f5de82c5fa4b7b6290f3ea Mon Sep 17 00:00:00 2001
From: David Sherret <dsherret@users.noreply.github.com>
Date: Wed, 24 Aug 2022 11:25:32 -0400
Subject: feat: support subpaths in npm package references (#15578)

---
 cli/tests/testdata/npm/sub_paths/main.jsx | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 cli/tests/testdata/npm/sub_paths/main.jsx

(limited to 'cli/tests/testdata/npm/sub_paths/main.jsx')

diff --git a/cli/tests/testdata/npm/sub_paths/main.jsx b/cli/tests/testdata/npm/sub_paths/main.jsx
new file mode 100644
index 000000000..0c712b9ff
--- /dev/null
+++ b/cli/tests/testdata/npm/sub_paths/main.jsx
@@ -0,0 +1,8 @@
+import React from "npm:react@18.2.0";
+import { renderToString } from "npm:react-dom@18.2.0/server";
+
+function App({ name }) {
+  return <div>Hello {name}!</div>;
+}
+
+console.log(renderToString(<App name="World" />));
-- 
cgit v1.2.3

