-
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
38 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
crates/rspack_plugin_runtime/src/runtime_module/runtime/compat_get_default_export.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
// getDefaultExport function for compatibility with non-harmony modules | ||
__webpack_require__.n = function (module) { | ||
var getter = module && module.__esModule ? | ||
function () { return module['default']; } : | ||
function () { return module; }; | ||
__webpack_require__.d(getter, { a: getter }); | ||
return getter; | ||
}; | ||
|
||
|
||
|
||
__webpack_require__.n = function(module) { | ||
// var getter = module && module.__esModule ? | ||
// function() { return module['default']; } : | ||
// function() { return module; } | ||
// __webpack_require__.d(getter, { a: getter }); | ||
// return getter; | ||
return module && module.__esModule ? module['default'] : module; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
packages/rspack/tests/runtimeDiffCases/runtime-compat-get-default-export/src/a.js
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/rspack/tests/runtimeDiffCases/runtime-compat-get-default-export/src/b.js
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
packages/rspack/tests/runtimeDiffCases/runtime-compat-get-default-export/src/index.js
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/rspack/tests/runtimeDiffCases/runtime-compat-get-default-export/test.config.js
This file was deleted.
Oops, something went wrong.