Skip to content

Commit

Permalink
Update esbuild config (microsoft#144)
Browse files Browse the repository at this point in the history
Description of changes

Adds mainFields option to extensionConfig object in all extensions using esbuild
  • Loading branch information
hawkticehurst authored May 9, 2023
1 parent f478efc commit 85c0fad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions default/component-gallery/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const baseConfig = {
const extensionConfig = {
...baseConfig,
platform: "node",
mainFields: ["module", "main"],
format: "cjs",
entryPoints: ["./src/extension.ts"],
outfile: "./out/extension.js",
Expand Down
1 change: 1 addition & 0 deletions default/hello-world/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const baseConfig = {
const extensionConfig = {
...baseConfig,
platform: "node",
mainFields: ["module", "main"],
format: "cjs",
entryPoints: ["./src/extension.ts"],
outfile: "./out/extension.js",
Expand Down
1 change: 1 addition & 0 deletions default/notepad/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const baseConfig = {
const extensionConfig = {
...baseConfig,
platform: "node",
mainFields: ["module", "main"],
format: "cjs",
entryPoints: ["./src/extension.ts"],
outfile: "./out/extension.js",
Expand Down
1 change: 1 addition & 0 deletions default/weather-webview/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const baseConfig = {
const extensionConfig = {
...baseConfig,
platform: "node",
mainFields: ["module", "main"],
format: "cjs",
entryPoints: ["./src/extension.ts"],
outfile: "./out/extension.js",
Expand Down

0 comments on commit 85c0fad

Please sign in to comment.