-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VSCode extension: Use rollup for dev build too (#2730)
Problem is vscode still doesn't allow loading es modules so we had all those hacks to make it work but loading es modules from comon js is always problematic. Using rollup to generate a commonjs output solve the problem and we are using that for the published version just not in dev. Issue with this new approach is `rush watch` won't build the extension but that's also not something you often need to touch.
- Loading branch information
1 parent
9f15ba5
commit 216d28e
Showing
11 changed files
with
72 additions
and
27 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@typespec/internal-build-utils/extensions-cleanup_2023-12-05-20-04.json
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@typespec/internal-build-utils", | ||
"comment": "Fix third party generation when there is invalid sourcemaps", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@typespec/internal-build-utils" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/typespec-vscode/extensions-cleanup_2023-12-05-17-22.json
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "typespec-vscode", | ||
"comment": "", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "typespec-vscode" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
13 changes: 9 additions & 4 deletions
13
packages/typespec-vscode/rollup.config.mjs → packages/typespec-vscode/rollup.config.ts
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// tsconfig for building the playground | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"sourceMap": true, | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"declaration": false, | ||
"declarationMap": false, | ||
"sourceRoot": ".." | ||
}, | ||
"include": ["src/**/*.ts"] | ||
} |
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