Skip to content

Commit

Permalink
test(es/module): Add a test for invalid issue (#6785)
Browse files Browse the repository at this point in the history
**Related issue:**

 - Closes #6779.
  • Loading branch information
kdy1 committed Jan 11, 2023
1 parent cd06479 commit 0ef84e1
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 0 deletions.
Empty file.
@@ -0,0 +1,5 @@
async function main() {
const addFunction = (await import('@/utils/add')).default // This doesn't work

console.log('2 + 3 =', addFunction(2, 3))
}
@@ -0,0 +1,3 @@
{
"@/utils/*": ["./*"]
}
@@ -0,0 +1,5 @@
async function main() {
const addFunction = (await import("./add")).default // This doesn't work
;
console.log('2 + 3 =', addFunction(2, 3));
}
Empty file.
@@ -0,0 +1,6 @@
import addFunction from '@/utils/add'


async function main() {
console.log('2 + 3 =', addFunction(2, 3))
}
@@ -0,0 +1,3 @@
{
"@/utils/*": ["./*"]
}
@@ -0,0 +1,4 @@
import addFunction from "./add";
async function main() {
console.log('2 + 3 =', addFunction(2, 3));
}

0 comments on commit 0ef84e1

Please sign in to comment.