aws / aws/aws-toolkit-vscode

build: warning about Vue esm-bundler flags

Open
#4,463 2 comments 0 reactions 0 assignees View on GitHub
build performance
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

# Problem

When I debug the extension using the `Extension` launch config, the debug console shows this Vue warning:

```
Feature flags __VUE_OPTIONS_API__, __VUE_PROD_DEVTOOLS__ are not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.

For more details, see https://link.vuejs.org/feature-flags.
```

# Expected behavior

Our build should set these flags so that (1) to avoid future confusion/noise about the purpose of the warning, and (2) to gain any potential performance benefits, if possible. Or confirm that we don't need to set these flags and that our build is already optimized.

Contributor guide

Open the contributing guide

Research direction

Start with the Extension launch config and the build configuration, then consult the linked Vue feature-flags documentation to understand the warning. Verify whether the build injects __VUE_OPTIONS_API__ and __VUE_PROD_DEVTOOLS__; done means the warning is removed during Extension debugging or the issue is clearly confirmed unnecessary with the build rationale documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.