diff options
author | 2022-02-08 01:05:13 -0800 | |
---|---|---|
committer | 2022-02-08 01:05:13 -0800 | |
commit | 347b34886550ce60d2723db58b7d04b0445661db (patch) | |
tree | 8c27d6c4d545d43851d302ae53e028001ed7adb7 | |
parent | d4afa5477ddb3546fb9f6e88821cf1bc57316294 (diff) | |
download | bun-347b34886550ce60d2723db58b7d04b0445661db.tar.gz bun-347b34886550ce60d2723db58b7d04b0445661db.tar.zst bun-347b34886550ce60d2723db58b7d04b0445661db.zip |
:camera:
-rwxr-xr-x | integration/scripts/bun.lockb | bin | 17219 -> 17219 bytes | |||
-rw-r--r-- | integration/snapshots/export-default-module-hot.debug.js | 17 | ||||
-rw-r--r-- | integration/snapshots/export-default-module-hot.hmr.debug.js | 17 | ||||
-rw-r--r-- | integration/snapshots/export-default-module-hot.hmr.js | 17 | ||||
-rw-r--r-- | integration/snapshots/export-default-module-hot.js | 17 | ||||
-rw-r--r-- | integration/snapshots/export.debug.js | 1 | ||||
-rw-r--r-- | integration/snapshots/export.js | 1 | ||||
-rw-r--r-- | integration/snippets/export-default-module-hot.js | 4 |
8 files changed, 72 insertions, 2 deletions
diff --git a/integration/scripts/bun.lockb b/integration/scripts/bun.lockb Binary files differindex 1af6fbf69..cea4eb8c4 100755 --- a/integration/scripts/bun.lockb +++ b/integration/scripts/bun.lockb diff --git a/integration/snapshots/export-default-module-hot.debug.js b/integration/snapshots/export-default-module-hot.debug.js new file mode 100644 index 000000000..3f12940f2 --- /dev/null +++ b/integration/snapshots/export-default-module-hot.debug.js @@ -0,0 +1,17 @@ +import { +__cJS2eSM +} from "http://localhost:8080/bun:wrap"; +import { +__exportDefault +} from "http://localhost:8080/bun:wrap"; +export default __cJS2eSM(function(module, exports) { + __exportDefault(module.exports, module.id); + + function test() { + testDone(import.meta.url); + } + Object.defineProperty(module.exports,"test",{get: () => test, enumerable: true, configurable: true}); +}, "export-default-module-hot.js"); + + + diff --git a/integration/snapshots/export-default-module-hot.hmr.debug.js b/integration/snapshots/export-default-module-hot.hmr.debug.js new file mode 100644 index 000000000..3f12940f2 --- /dev/null +++ b/integration/snapshots/export-default-module-hot.hmr.debug.js @@ -0,0 +1,17 @@ +import { +__cJS2eSM +} from "http://localhost:8080/bun:wrap"; +import { +__exportDefault +} from "http://localhost:8080/bun:wrap"; +export default __cJS2eSM(function(module, exports) { + __exportDefault(module.exports, module.id); + + function test() { + testDone(import.meta.url); + } + Object.defineProperty(module.exports,"test",{get: () => test, enumerable: true, configurable: true}); +}, "export-default-module-hot.js"); + + + diff --git a/integration/snapshots/export-default-module-hot.hmr.js b/integration/snapshots/export-default-module-hot.hmr.js new file mode 100644 index 000000000..3f12940f2 --- /dev/null +++ b/integration/snapshots/export-default-module-hot.hmr.js @@ -0,0 +1,17 @@ +import { +__cJS2eSM +} from "http://localhost:8080/bun:wrap"; +import { +__exportDefault +} from "http://localhost:8080/bun:wrap"; +export default __cJS2eSM(function(module, exports) { + __exportDefault(module.exports, module.id); + + function test() { + testDone(import.meta.url); + } + Object.defineProperty(module.exports,"test",{get: () => test, enumerable: true, configurable: true}); +}, "export-default-module-hot.js"); + + + diff --git a/integration/snapshots/export-default-module-hot.js b/integration/snapshots/export-default-module-hot.js new file mode 100644 index 000000000..3f12940f2 --- /dev/null +++ b/integration/snapshots/export-default-module-hot.js @@ -0,0 +1,17 @@ +import { +__cJS2eSM +} from "http://localhost:8080/bun:wrap"; +import { +__exportDefault +} from "http://localhost:8080/bun:wrap"; +export default __cJS2eSM(function(module, exports) { + __exportDefault(module.exports, module.id); + + function test() { + testDone(import.meta.url); + } + Object.defineProperty(module.exports,"test",{get: () => test, enumerable: true, configurable: true}); +}, "export-default-module-hot.js"); + + + diff --git a/integration/snapshots/export.debug.js b/integration/snapshots/export.debug.js index 534cb2a0c..184c92455 100644 --- a/integration/snapshots/export.debug.js +++ b/integration/snapshots/export.debug.js @@ -4,7 +4,6 @@ export {default as auth} from "http://localhost:8080/_auth.js"; export {default as login} from "http://localhost:8080/_login.js"; export * from "http://localhost:8080/_bacon.js"; export let yoyoyo = "yoyoyo"; - export default function hey() { return true; } diff --git a/integration/snapshots/export.js b/integration/snapshots/export.js index 534cb2a0c..184c92455 100644 --- a/integration/snapshots/export.js +++ b/integration/snapshots/export.js @@ -4,7 +4,6 @@ export {default as auth} from "http://localhost:8080/_auth.js"; export {default as login} from "http://localhost:8080/_login.js"; export * from "http://localhost:8080/_bacon.js"; export let yoyoyo = "yoyoyo"; - export default function hey() { return true; } diff --git a/integration/snippets/export-default-module-hot.js b/integration/snippets/export-default-module-hot.js index 559c5c19e..d6bb5a6a1 100644 --- a/integration/snippets/export-default-module-hot.js +++ b/integration/snippets/export-default-module-hot.js @@ -1,2 +1,6 @@ // This test passes if there's no syntax error export default module.id; + +export function test() { + testDone(import.meta.url); +} |