Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Configurable Alias is about having the option to not only use the
alias_
when referencing common constants in your code. This can be references to a near account, an external URL or whatever you need to reference in your code.In the updated documentation you can read about the new
aliasPrefix
andaliasesContainsPrefix
settings, which gives you the option to use another prefix thanalias
and also that your aliases file contains the prefix itself in the names of the object keys.Here's from the "Custom alias prefix" section of the documentation:
If your aliases are prefixed with another keyword than
alias
, you may configure this using thealiasPrefix
property. You may also include the prefix in the keys of your alias json file. Here is an example:and then with your
aliases.mainnet.json
like this:If your widget file looks like this:
Then the alias will be replaced like this:
This update also makes it more compatible with bos-loader so that you can more easily use existing project with replacement configurations with bos-workspaces.
fixes #109