mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
feat(bundler): add Aliases option for spec import resolution
Specs import from "@uatu/spec"; the bundler maps that to the vendored pkg/spec-api/src/index.ts via esbuild's Alias map.
This commit is contained in:
1 parent
8c6a3171d7
commit
7aa75f3d9f
2 files changed
+27
No files matched your search
@@ -14,6 +14,7 @@ import (
|
||||
type Options struct {
|
||||
EntryFile string
|
||||
Defines map[string]string
|
||||
Aliases map[string]string
|
||||
Sourcemap bool
|
||||
}
|
||||
|
||||
@@ -51,6 +52,7 @@ func Bundle(options Options) (Result, error) {
|
||||
Target: esbuild.ES2020,
|
||||
Platform: esbuild.PlatformNeutral,
|
||||
Define: defines,
|
||||
Alias: options.Aliases,
|
||||
Sourcemap: sourcemap,
|
||||
Write: false,
|
||||
LogLevel: esbuild.LogLevelSilent,
|
||||
|
||||
Reference in new issue
Block a user