-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ref(build): Switch TypeScript moduleResolution to bundler
#21559
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
base: develop
Are you sure you want to change the base?
Changes from all commits
274e3e0
16c4763
eecb8d9
4fa744a
abc7d49
42f61be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ | |
| "include": ["src/**/*"], | ||
|
|
||
| "compilerOptions": { | ||
| "moduleResolution": "bundler" | ||
| // package-specific options | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ | |
| "include": ["src/**/*"], | ||
|
|
||
| "compilerOptions": { | ||
| "moduleResolution": "bundler" | ||
| // package-specific options | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,5 @@ | |
|
|
||
| "compilerOptions": { | ||
| // package-specific options | ||
| "module": "esnext", | ||
| "moduleResolution": "bundler" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,5 @@ | |
|
|
||
| "compilerOptions": { | ||
| // package-specific options | ||
| "module": "esnext", | ||
| "moduleResolution": "bundler" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,5 @@ | |
|
|
||
| "compilerOptions": { | ||
| // package-specific options | ||
| "module": "esnext", | ||
| "moduleResolution": "bundler" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ | |
| "include": ["src/**/*"], | ||
|
|
||
| "compilerOptions": { | ||
| "moduleResolution": "bundler", | ||
| "jsx": "react" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| { | ||
| "extends": "../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "lib": ["DOM", "es2020"], | ||
| "module": "esnext" | ||
| "lib": ["DOM", "es2020"] | ||
| }, | ||
| "include": ["src/**/*.ts"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| { | ||
| "extends": "../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "lib": ["DOM", "es2020"], | ||
| "module": "esnext" | ||
| "lib": ["DOM", "es2020"] | ||
| }, | ||
| "include": ["src/**/*.ts"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,5 @@ | |
|
|
||
| "include": ["src/**/*"], | ||
|
|
||
| "compilerOptions": { | ||
| "lib": ["ES2020"] | ||
| } | ||
| "compilerOptions": {} | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| import type { CompileOptions } from 'svelte/types/compiler'; | ||
| import type { PreprocessorGroup } from 'svelte/types/compiler/preprocess'; | ||
| import type { CompileOptions } from 'svelte/compiler'; | ||
|
|
||
| // Adds an id property to the preprocessor object we can use to check for duplication | ||
| // in the preprocessors array | ||
|
|
@@ -70,3 +69,32 @@ export type TrackComponentOptions = { | |
| */ | ||
| componentName?: string; | ||
| } & SpanOptions; | ||
|
|
||
| // vendor those types from svelte/types/compiler/preprocess | ||
| export interface Processed { | ||
| code: string; | ||
| map?: string | object; | ||
| dependencies?: string[]; | ||
| toString?: () => string; | ||
| } | ||
| export declare type MarkupPreprocessor = (options: { | ||
| content: string; | ||
| filename?: string; | ||
| }) => Processed | void | Promise<Processed | void>; | ||
| export declare type Preprocessor = (options: { | ||
| /** | ||
| * The script/style tag content | ||
| */ | ||
| content: string; | ||
| attributes: Record<string, string | boolean>; | ||
| /** | ||
| * The whole Svelte file content | ||
| */ | ||
| markup: string; | ||
| filename?: string; | ||
| }) => Processed | void | Promise<Processed | void>; | ||
| export interface PreprocessorGroup { | ||
| markup?: MarkupPreprocessor; | ||
| style?: Preprocessor; | ||
| script?: Preprocessor; | ||
| } | ||
|
Comment on lines
+96
to
+100
Contributor
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. Bug: The vendored Suggested FixAdd the Prompt for AI AgentAlso affects:
Did we get this right? 👍 / 👎 to inform future reviews.
Member
Author
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. Those are internal types, not exposed to users AFAIK. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is sad that we have to do this :(
But it seems to be the only way
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I don't want to go on an upgrade trip and find the lowest possible version of angular build tooling that both works for us and makes the angular SDK build properly without breaking our support range.
We probably need to upgrade this setup at somepoint.