ValidImportStatements.js 1.1 KB

12345678910111213141516171819202122232425
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. // Empty import statement is legal - does nothing but execute the module
  6. import "ValidExportStatements.js";
  7. import "ValidExportStatements.js"
  8. // Import default binding
  9. import ns1 from "ValidExportStatements.js";
  10. import ns2 from "ValidExportStatements.js"
  11. // Named import list
  12. import { foo } from "ValidExportStatements.js";
  13. import { foo as foo22, bar, } from "ValidExportStatements.js"
  14. // Namespace import statement
  15. import * as ns3 from "ValidExportStatements.js";
  16. import * as ns8 from "ValidExportStatements.js"
  17. // Import statement with default binding and a second clause
  18. //import ns4, * as ns5 from "ValidExportStatements.js"
  19. import ns6, { baz } from "ValidExportStatements.js";
  20. import ns7, { foo as foo23, foobar, } from "ValidExportStatements.js"