From da7de899e14f498cb441d2198e718f5406598405 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 15 Oct 2021 23:02:40 -0700 Subject: [PATCH] :camera: --- ...ansform-shouldnt-have-static-imports-in-cjs-function.hmr.js | 3 ++- ...s-transform-shouldnt-have-static-imports-in-cjs-function.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js b/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js index d8e3ccdd1c..fa25e2df84 100644 --- a/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js +++ b/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js @@ -24,9 +24,10 @@ export default __cJS2eSM(function(module, exports) { require(_login_b977_0); require(_login_b977_1); Object.defineProperty(module.exports,"login",{get: () => _login, enumerable: true, configurable: true}); - var test = function test() { + function test() { return testDone(import.meta.url); }; +var test = test; Object.defineProperty(module.exports,"test",{get: () => test, enumerable: true, configurable: true}); var foo, bar; Object.defineProperties(module.exports,{'foo': {get: () => foo, set: ($_newValue) => {foo = $_newValue;}, enumerable: true, configurable: true}, 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 d9f64c5b94..53bb66b5e4 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 @@ -24,9 +24,10 @@ export default __cJS2eSM(function(module, exports) { require(_login_b977_0); require(_login_b977_1); Object.defineProperty(module.exports,"login",{get: () => _login, enumerable: true, configurable: true}); - var test = function test() { + function test() { return testDone(import.meta.url); }; +var test = test; Object.defineProperty(module.exports,"test",{get: () => test, enumerable: true, configurable: true}); let foo, bar; Object.defineProperties(module.exports,{'foo': {get: () => foo, set: ($_newValue) => {foo = $_newValue;}, enumerable: true, configurable: true},