Commit Graph

12 Commits

Author SHA1 Message Date
Haoqun Jiang 662153bc6a feat: generate projects with transpileDependencies: true by default (#6663) 2021-09-03 14:44:46 +08:00
Haoqun Jiang cd78376675 feat!: turn on modern mode by default, and provide a --no-module option (#6416) 2021-04-14 14:57:28 +08:00
Haoqun Jiang d64e7d3158 feat: when transpileDependencies is set to true, transpile all dependencies in node_modules (#6354) 2021-03-24 14:04:43 +08:00
Haoqun Jiang 2dbe0be840 feat!: support and use webpack 5 as default (#6060) 2020-12-03 15:16:35 +08:00
Haoqun Jiang b1772cadd2 feat: allow choosing vue version on creation (and in presets) (#5637) 2020-07-24 18:54:15 +08:00
Haoqun Jiang a468abfa6c feat: implement a migrator to upgrade to eslint 6 (#5085)
* refactor: extract deps & config logic to separate files

* feat: implement a migrator to upgrade to eslint 6

* fix: add required deps for eslint v4

* test: move migrator tests to each standalone plugins

* refactor: use spread operator instead of Object.assign
2020-01-27 14:00:16 +08:00
Haoqun Jiang 759d77fd5c refactor: use babel overrides to transpile babel runtime helpers (#4777)
* refactor: use babel overrides to transpile babel runtime helpers

As recommended in babel/babel#9903.
Get rid of the module-resolver plugin, may fix #3928.
Seems to have fixed #4742 as well.

There may be a small breaking change: as we now use `excludes` & `includes`, babel requires `filename` option to be present (introduced in https://github.com/babel/babel/pull/10181/files). So users who call `babel.transformSync` directly may encounter an error.

However, as we explicitly stated that this preset is only used for Vue CLI internally, I don't expect too many such use cases there. And the error messages are clear enough.
Considering the benefits that this PR brings, I think it's an acceptable tradeoff.


 test: update tests for babel

* test: fix windows tests

* test: remove unused variables

* fix: fix scope package paths on Windows

* test: wait some time in router tests in case dom hasn't updated in time
2019-11-04 16:29:06 +08:00
JK fb71653b27 fix(cli-plugin-babel): transpileDependencies should only match packages inside node_modules, close #3057 (#3229) 2019-01-31 00:59:52 +08:00
Haoqun Jiang 3247719e20 fix: fix scoped modules exclusion on windows (#2379)
closes #2251
2018-09-04 17:47:10 +08:00
Evan You 5792ed89fb test: fix tests 2018-06-13 14:22:44 -04:00
Evan You fa4629a7e1 test: fix tests after vendor chunk change 2018-05-28 21:21:14 -04:00
Evan You 1279b3e401 fix: fix transpileDependencies by always using babel.config.js 2018-05-17 16:19:23 -04:00