From bc65e40313ca25baed4f23a02e6b088932259f5e Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 17 Sep 2021 14:47:14 -0700 Subject: Fix multiple imports to CJS modules when referencing via module_id hash --- .../cjs-transform-shouldnt-have-static-imports-in-cjs-function.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js') diff --git a/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js b/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js index be7a60e6e..d8e3ccdd1 100644 --- a/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js +++ b/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.js @@ -5,9 +5,11 @@ import { __cJS2eSM } from "http://localhost:8080/__runtime.js"; import * as _login_b977_0 from "http://localhost:8080/_login.js"; +import * as _login_b977_1 from "http://localhost:8080/_login.js"; import _login from "http://localhost:8080/_login.js"; import _auth from "http://localhost:8080/_auth.js"; import * as _loginReally from "http://localhost:8080/_login.js"; +import * as _loginReally2 from "http://localhost:8080/_login.js"; import * as _authReally from "http://localhost:8080/_auth.js"; export default __cJS2eSM(function(module, exports) { @@ -16,9 +18,11 @@ export default __cJS2eSM(function(module, exports) { ; ; ; + ; module.exports.iAmCommonJs = true; exports.YouAreCommonJS = true; require(_login_b977_0); + require(_login_b977_1); Object.defineProperty(module.exports,"login",{get: () => _login, enumerable: true, configurable: true}); var test = function test() { return testDone(import.meta.url); -- cgit v1.2.3