diff options
author | 2021-09-17 03:14:23 -0700 | |
---|---|---|
committer | 2021-09-17 03:14:23 -0700 | |
commit | 1c7485e58c2fc02ceed4656752c5315178e9b9a9 (patch) | |
tree | 2633805273fb709ef1a20bc12d869033f74c810c /integration/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js | |
parent | 872428de89c63e0034573c1419fa616f8d0648b1 (diff) | |
download | bun-1c7485e58c2fc02ceed4656752c5315178e9b9a9.tar.gz bun-1c7485e58c2fc02ceed4656752c5315178e9b9a9.tar.zst bun-1c7485e58c2fc02ceed4656752c5315178e9b9a9.zip |
Begin to add integration tests
Diffstat (limited to 'integration/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js')
-rw-r--r-- | integration/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/integration/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js b/integration/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js new file mode 100644 index 000000000..4191b7116 --- /dev/null +++ b/integration/snippets/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js @@ -0,0 +1,15 @@ +import _login from "./_login"; +import _auth from "./_auth"; +import * as _loginReally from "./_login"; +import * as _authReally from "./_auth"; + +module.exports.iAmCommonJs = true; +exports.YouAreCommonJS = true; +require("./_login"); +export { _login as login }; + +export function test() { + return testDone(import.meta.url); +} + +export let foo, bar; |