Modern mode is breaking about @vue/cli-service and @vue/cli-plugin-typescript 3.4.0
See original GitHub issueVersion
3.4.0
Reproduction link
https://github.com/yoyo930021/modern-mode-example
Environment info
Environment Info:
System:
OS: macOS 10.14.3
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Binaries:
Node: 10.14.1 - ~/.nvm/versions/node/v10.14.1/bin/node
Yarn: 1.12.3 - ~/.nvm/versions/node/v10.14.1/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.14.1/bin/npm
Browsers:
Chrome: 71.0.3578.98
Firefox: 64.0.2
Safari: 12.0.3
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0-beta.2
@vue/babel-plugin-transform-vue-jsx: 1.0.0-beta.2
@vue/babel-preset-app: 3.4.0
@vue/babel-preset-jsx: 1.0.0-beta.2
@vue/babel-sugar-functional-vue: 1.0.0-beta.2
@vue/babel-sugar-inject-h: 1.0.0-beta.2
@vue/babel-sugar-v-model: 1.0.0-beta.2
@vue/babel-sugar-v-on: 1.0.0-beta.2
@vue/cli-overlay: 3.4.0
@vue/cli-plugin-babel: ^3.4.0 => 3.4.0
@vue/cli-plugin-eslint: ^3.4.0 => 3.4.0
@vue/cli-plugin-typescript: ^3.4.0 => 3.3.0
@vue/cli-service: ^3.4.0 => 3.3.0
@vue/cli-shared-utils: 3.4.0
@vue/component-compiler-utils: 2.5.2
@vue/eslint-config-prettier: ^4.0.1 => 4.0.1
@vue/eslint-config-typescript: ^4.0.0 => 4.0.0
@vue/preload-webpack-plugin: 1.1.0
@vue/web-component-wrapper: 1.2.0
eslint-plugin-vue: ^5.0.0 => 5.1.0
vue: ^2.5.22 => 2.6.3
vue-class-component: ^6.0.0 => 6.3.2
vue-eslint-parser: 4.0.3
vue-hot-reload-api: 2.3.1
vue-loader: 15.6.2
vue-property-decorator: ^7.0.0 => 7.3.0
vue-style-loader: 4.1.2
vue-template-compiler: ^2.5.21 => 2.6.3
vue-template-es2015-compiler: 1.8.2
npmGlobalPackages:
@vue/cli: Not Found
Steps to reproduce
yarn build --modern
- open
dist/js/app.[hash].js
- search
async
orawait
not found and file is likedist/js/app-legacy.[hash].js
What is expected?
dist/js/app.[hash].js
have async
await
word.
What is actually happening?
modern mode is breaking
If you try to run yarn add --dev @vue/cli-plugin-typescript@3.3.0 && yarn add --dev @vue/cli-service@3.3.0
modern mode is succeed.
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
How to fix @vue/cli Vulnerabilities? - Stack Overflow
I had an extraneous package installed with npm install @vue/cli -g called subscriptions-transport-ws which was no longer maintained and used a ...
Read more >Migrate from v4 - Vue CLI
The build Command and Modern Mode #. Starting with v5.0.0-beta.0, running vue-cli-service build will automatically generate different bundles ...
Read more >@vue/cli-plugin-typescript - Awesome JS
This is likely to be the last RC version of Vue CLI 5. No more breaking changes are planned. If no major regressions...
Read more >Vue Cli 3 --Modern Mode Build =≫ Error In Browser - ADocLib
The main reason why your Vue app is breaking in IE11 is because the browser does not support modern JavaScript syntax. By that...
Read more >Security in Vuejs 3.0 with authentication and authorization by ...
We will use the cli tool and install it with npm as a global tool with the ... Use Babel alongside TypeScript (required...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@babel/polyfill does not get provided when you use vue ui and install babel as a plugin. After installing it manually it adds about 90kb to both my builds and does not build modern. @vue/cli-service, @vue/cli-plugin-babel and @vue/cli-plugin-eslint are updated to their latest version, imported the polyfill in the entry JS file and added the babel config file:
module.exports = { presets: [ ['@vue/app', { useBuiltIns: 'entry', }] ] };
what am I missing here?
Modern mode still hangs for me @vue/cli 3.5.3. Please could someone confirm which version this fix should be present in, or what the version dependencies are?