Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(commonjs)!: default strictRequires to true #1639

Merged
merged 15 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into commonjs-strict-requires-true
  • Loading branch information
bluwy committed Sep 23, 2024
commit e2d74c0318ce03f2ee962776edc58ed803b299a7
29 changes: 20 additions & 9 deletions packages/commonjs/test/snapshots/function.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,20 +374,31 @@ Generated by [AVA](https://avajs.dev).
{
'main.js': `'use strict';␊
Object.defineProperty(exports, '__esModule', { value: true });␊
function getDefaultExportFromCjs (x) {␊
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;␊
}␊
var main = {};␊
var main$1 = {};␊
var hasRequiredMain;␊
function requireMain () {␊
if (hasRequiredMain) return main$1;␊
hasRequiredMain = 1;␊
class Rollup {␊
define;␊
require;␊
global;␊
}␊
class Rollup {␊
define;␊
require;␊
global;␊
main$1.Rollup = Rollup;␊
return main$1;␊
}␊
var Rollup_1 = main.Rollup = Rollup;␊
var mainExports = requireMain();␊
var main = /*@__PURE__*/getDefaultExportFromCjs(mainExports);␊
exports.Rollup = Rollup_1;␊
exports.default = main;␊
module.exports = main;␊
`,
}

Expand Down
Binary file modified packages/commonjs/test/snapshots/function.js.snap
Binary file not shown.
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.