update go 1.15.5 => go 1.15.7

This commit is contained in:
Evan Wallace
2021-01-28 01:48:14 -08:00
parent 4417f2f80d
commit e073390929
3 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ var defaultMainFields = map[config.Platform][]string{
// This is deliberate because the presence of the "browser" field is a
// good signal that the "module" field may have non-browser stuff in it,
// which will crash or fail to be bundled when targeting the browser.
config.PlatformBrowser: []string{"browser", "module", "main"},
config.PlatformBrowser: {"browser", "module", "main"},
// Note that this means if a package specifies "module" and "main", the ES6
// module will not be selected. This means tree shaking will not work when
@@ -48,12 +48,12 @@ var defaultMainFields = map[config.Platform][]string{
// If you want to enable tree shaking when targeting node, you will have to
// configure the main fields to be "module" and then "main". Keep in mind
// that some packages may break if you do this.
config.PlatformNode: []string{"main", "module"},
config.PlatformNode: {"main", "module"},
// The neutral platform is for people that don't want esbuild to try to
// pick good defaults for their platform. In that case, the list of main
// fields is empty by default. You must explicitly configure it yourself.
config.PlatformNeutral: []string{},
config.PlatformNeutral: {},
}
// Path resolution is a mess. One tricky issue is the "module" override for the