Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: turn on modern mode by default, and provide a --no-module option #6416

Merged
merged 10 commits into from
Apr 14, 2021

Conversation

haoqunjiang
Copy link
Member

  1. Documentation hasn't been updated. But I'd like to do the overhaul in a separate PR later;
  2. I chose the --no-module name over --no-modern because I think it better reflects the actual usage of script type="module". And the base browser targets for ES module support isn't that modern as we are now at years after its initial introduction.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

I'm also working on a --module-only option in a separate PR.

`--no-modern` sounds weird, so I prefer the `--no-module` option.
But `--no-modern` is kept for the convenience of implementation, could
be removed later.
TODO: shall we rename `--modernBuild` too?
Don't have the time to fix the tests after changing the default value
of modern mode. So I'll leave that for later.
Now that modern mode is on by default, the build time increases too
@haoqunjiang haoqunjiang merged commit cd78376 into vuejs:dev Apr 14, 2021
@haoqunjiang haoqunjiang deleted the feat-modern-by-default branch April 14, 2021 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant