aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/export-default-module-hot.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/snippets/export-default-module-hot.js')
-rw-r--r--test/snippets/export-default-module-hot.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/snippets/export-default-module-hot.js b/test/snippets/export-default-module-hot.js
new file mode 100644
index 000000000..aee4e2468
--- /dev/null
+++ b/test/snippets/export-default-module-hot.js
@@ -0,0 +1,6 @@
+// This test passes if there's no syntax error
+export default typeof module !== "undefined" && module.id;
+
+export function test() {
+ testDone(import.meta.url);
+}