-
Notifications
You must be signed in to change notification settings - Fork 649
Port IsSourceFileFromExternalLibrary, fix node18 emit #1234
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8905fe4
port IsSourceFileFromExternalLibrary
maschwenk ab18897
Add note?
maschwenk 3eab5ea
Merge branch 'main' into mfs-port-exitsing-code
jakebailey 6d5eb56
Simplify
jakebailey fbef2be
Use Set
jakebailey a0358c2
Majorly simplify task adding
jakebailey 3d73d54
Boy was that annoying
jakebailey 3879dd5
Merge branch 'main' into mfs-port-exitsing-code
jakebailey a29364e
fmt
jakebailey eee61dc
Fix node18 while here
jakebailey c355fac
Fix isCommonJSContainingModuleKind
jakebailey 833f6f0
oops
jakebailey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -973,6 +973,7 @@ func (p *Project) GetFileNames(excludeFilesFromExternalLibraries bool, excludeCo | |
result := []string{} | ||
sourceFiles := p.program.GetSourceFiles() | ||
for _, sourceFile := range sourceFiles { | ||
// !! This is probably ready to be implemented now? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we have |
||
// if excludeFilesFromExternalLibraries && p.program.IsSourceFileFromExternalLibrary(sourceFile) { | ||
// continue; | ||
// } | ||
|
This file contains hidden or 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
12 changes: 0 additions & 12 deletions
12
testdata/baselines/reference/submodule/compiler/moduleAugmentationInDependency2.js.diff
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
25 changes: 9 additions & 16 deletions
25
...selines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).js.diff
This file contains hidden or 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,22 +1,15 @@ | ||
--- old.nodeModulesExportsSourceTs(module=node16).js | ||
+++ new.nodeModulesExportsSourceTs(module=node16).js | ||
@@= skipped -26, +26 lines =@@ | ||
"exports": "./index.ts" | ||
} | ||
|
||
-//// [other.js] | ||
-export const x = null; | ||
-//// [index.js] | ||
-// esm format file | ||
-export { x } from "./other.js"; | ||
//// [index.js] | ||
export const a = (await import("inner")).x(); | ||
@@= skipped -36, +36 lines =@@ | ||
|
||
|
||
-//// [other.d.ts] | ||
-export interface Thing { | ||
-} | ||
-export declare const x: () => Thing; | ||
//// [other.d.ts] | ||
+// esm format file | ||
export interface Thing { | ||
} | ||
export declare const x: () => Thing; | ||
//// [index.d.ts] | ||
-export { x } from "./other.js"; | ||
+// esm format file | ||
export { x } from "./other.js"; | ||
+//// [index.d.ts] | ||
+export declare const a: any; |
This file contains hidden or 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
40 changes: 24 additions & 16 deletions
40
...selines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).js.diff
This file contains hidden or 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,29 +1,37 @@ | ||
--- old.nodeModulesExportsSourceTs(module=node18).js | ||
+++ new.nodeModulesExportsSourceTs(module=node18).js | ||
@@= skipped -26, +26 lines =@@ | ||
"exports": "./index.ts" | ||
@@= skipped -27, +27 lines =@@ | ||
} | ||
|
||
-//// [other.js] | ||
//// [other.js] | ||
-export const x = null; | ||
-//// [index.js] | ||
-// esm format file | ||
+"use strict"; | ||
jakebailey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
+Object.defineProperty(exports, "__esModule", { value: true }); | ||
+exports.x = void 0; | ||
+exports.x = null; | ||
//// [index.js] | ||
+"use strict"; | ||
+Object.defineProperty(exports, "__esModule", { value: true }); | ||
+exports.x = void 0; | ||
// esm format file | ||
-export { x } from "./other.js"; | ||
-//// [index.js] | ||
+const other_js_1 = require("./other.js"); | ||
+Object.defineProperty(exports, "x", { enumerable: true, get: function () { return other_js_1.x; } }); | ||
//// [index.js] | ||
-export const a = (await import("inner")).x(); | ||
- | ||
- | ||
-//// [other.d.ts] | ||
-export interface Thing { | ||
-} | ||
-export declare const x: () => Thing; | ||
+//// [index.js] | ||
+"use strict"; | ||
+Object.defineProperty(exports, "__esModule", { value: true }); | ||
+exports.a = void 0; | ||
+exports.a = (await import("inner")).x(); | ||
+ | ||
+ | ||
|
||
|
||
//// [other.d.ts] | ||
+// esm format file | ||
export interface Thing { | ||
} | ||
export declare const x: () => Thing; | ||
//// [index.d.ts] | ||
-export { x } from "./other.js"; | ||
+// esm format file | ||
export { x } from "./other.js"; | ||
+//// [index.d.ts] | ||
+export declare const a: any; |
This file contains hidden or 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
25 changes: 9 additions & 16 deletions
25
...lines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).js.diff
This file contains hidden or 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,22 +1,15 @@ | ||
--- old.nodeModulesExportsSourceTs(module=nodenext).js | ||
+++ new.nodeModulesExportsSourceTs(module=nodenext).js | ||
@@= skipped -26, +26 lines =@@ | ||
"exports": "./index.ts" | ||
} | ||
|
||
-//// [other.js] | ||
-export const x = null; | ||
-//// [index.js] | ||
-// esm format file | ||
-export { x } from "./other.js"; | ||
//// [index.js] | ||
export const a = (await import("inner")).x(); | ||
@@= skipped -36, +36 lines =@@ | ||
|
||
|
||
-//// [other.d.ts] | ||
-export interface Thing { | ||
-} | ||
-export declare const x: () => Thing; | ||
//// [other.d.ts] | ||
+// esm format file | ||
export interface Thing { | ||
} | ||
export declare const x: () => Thing; | ||
//// [index.d.ts] | ||
-export { x } from "./other.js"; | ||
+// esm format file | ||
export { x } from "./other.js"; | ||
+//// [index.d.ts] | ||
+export declare const a: any; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.