-
-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(commonjs): Always sort node-resolve plugin after commonjs if neceβ¦
β¦ssary
- Loading branch information
1 parent
8d56097
commit efd0273
Showing
8 changed files
with
80 additions
and
129 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 was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -5624,7 +5624,7 @@ Generated by [AVA](https://avajs.dev). | |
`, | ||
} | ||
|
||
## strict-requires-entry | ||
## strict-requires-entry-node-resolve | ||
|
||
> Snapshot 1 | ||
|
@@ -5883,40 +5883,6 @@ Generated by [AVA](https://avajs.dev). | |
`, | ||
} | ||
|
||
## strict-requires-magic-string | ||
|
||
> Snapshot 1 | ||
{ | ||
'main.js': `'use strict';β | ||
β | ||
Object.defineProperty(exports, '__esModule', { value: true });β | ||
β | ||
var main = {};β | ||
β | ||
var hasRequiredMain;β | ||
β | ||
function requireMain () {β | ||
if (hasRequiredMain) return main;β | ||
hasRequiredMain = 1;β | ||
console.log('hey');β | ||
// [email protected]β | ||
const m = new MagicString('0123456789');β | ||
console.log(β | ||
m.prependRight(0, 'W').prependLeft(3, 'AB').appendRight(9, 'XY').remove(6, 8).toString()β | ||
);β | ||
const bundle = new MagicString.Bundle();β | ||
bundle.addSource({ filename: 'foo.txt', content: m });β | ||
const map = bundle.generateMap({ file: 'bundle.txt', includeContent: true, hires: true });β | ||
console.log(JSON.stringify(map));β | ||
main.foo = 'foo';β | ||
return main;β | ||
}β | ||
β | ||
exports.__require = requireMain;β | ||
`, | ||
} | ||
|
||
## strict-requires-multiple-entry | ||
|
||
> Snapshot 1 | ||
|
@@ -6807,27 +6773,3 @@ Generated by [AVA](https://avajs.dev). | |
module.exports = main;β | ||
`, | ||
} | ||
|
||
## strict-requires-entry-node-resolve | ||
|
||
> Snapshot 1 | ||
{ | ||
'main.js': `'use strict';β | ||
β | ||
var main = {};β | ||
β | ||
var hasRequiredMain;β | ||
β | ||
function requireMain () {β | ||
if (hasRequiredMain) return main;β | ||
hasRequiredMain = 1;β | ||
main.foo = 'foo';β | ||
return main;β | ||
}β | ||
β | ||
var mainExports = requireMain();β | ||
β | ||
module.exports = mainExports;β | ||
`, | ||
} |
Binary file not shown.