From 729d445b6885f69dd2c6355f38707bd42851c791 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:21:48 -0700 Subject: change the directory structure --- ...form-shouldnt-have-static-imports-in-cjs-function.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js (limited to 'test/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js') diff --git a/test/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js b/test/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js new file mode 100644 index 000000000..1ba6c059d --- /dev/null +++ b/test/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js @@ -0,0 +1,17 @@ +import _login from "./_login"; +import _auth from "./_auth"; +import * as _loginReally from "./_login"; +import * as _loginReally2 from "./_login"; +import * as _authReally from "./_auth"; + +// module.exports.iAmCommonJs = true; +// exports.YouAreCommonJS = true; +// require("./_login"); +// require("./_login"); +export { _login as login }; + +export function test() { + return testDone(import.meta.url); +} + +export let foo, bar; -- cgit v1.2.3