aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js')
-rw-r--r--test/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js17
1 files changed, 17 insertions, 0 deletions
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;