Merge pull request #7060 from webpack/test/any-comment-in-import

add test case for comments in import()
This commit is contained in:
Tobias Koppers 2018-04-17 11:05:10 +02:00 committed by GitHub
commit 0ff29011e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
it("should allow random comments in import()", () => {
return Promise.all([
import(/* hello world */ "./module"),
import(/* }); */ "./module"),
import(/* test */ "./module"),
import(/* 1234 */ "./module")
]);
});