Commit Graph

40 Commits

Author SHA1 Message Date
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
4ce7edd375 feat: use html-webpack-plugin v5 by default (#6269) 2021-02-10 11:17:49 +08:00
Haoqun Jiang
51d82a56c7 chore: disable cacheCompression for babel-loader by default (#6222)
See the reasoning at https://github.com/facebook/create-react-app/pull/7633

This change should improve the build speed for large projects
2021-01-21 10:28:27 +08:00
Haoqun Jiang
4378c8df26 style: replace eslint-plugin-vue-libs with standard config (#6148) 2021-01-06 14:29:12 +08:00
Haoqun Jiang
3b3cd9060b refactor: replace cache-loader with babel-loader's built-in cache (#6142)
It's supposed to have better performance.
See https://github.com/babel/babel-loader/issues/525#issuecomment-375756108

Besides, this improves webpack 5 compatibilities as cache-loader is now
deprecated
2020-12-14 10:41:55 +08:00
Haoqun Jiang
c8cecffedb refactor: remove usage of deprecated babel functions, preparing for babel 8 (#5133)
* refactor: use babel.loadPartialConfigSync (added in babel 7.8)

As planned in https://github.com/babel/babel/issues/10746,
in babel 8 the old `loadPartialConfig` can't be used synchronously.

* refactor: remove dependence on internal babel files, preparing for babel 8

See
https://github.com/babel/babel/issues/10746
https://github.com/babel/babel/pull/10899
2020-02-03 19:52:42 +08:00
Haoqun Jiang
c7961cd5af fix: do not throw when babel config contains ignore/include/exclude (#4924)
fixes #4923
2019-12-06 15:23:44 +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
Maël Nison
0a5c79be52 Enforces require.resolve for loaders (#4532)
* Enforces require.resolve for loaders

* Updates the lockfile

* Fixes more things

* Adds an extra check

* test(loaders): fix the tests

* style(cli): fix the linting

* style(cli): fix the linting (on windows)

* Update package.json

* Updates the lockfile

* chore: sync dependency versions

* chore: sync dependency versions

* chore: don't introduce unnecessary changes in yarn.lock

* extraneous space
2019-11-04 16:26:33 +08:00
Haoqun Jiang
a351cbadb8 feat: allow parallel option to be an integer (#3864)
closes #3850
2019-04-27 20:11:16 +08:00
Michiel Nugter
8562d3edfd feat: add .mjs files as transpileable files (#3485) 2019-02-28 14:41:42 +08:00
Haoqun Jiang
a2bc927ac8 fix: fix hash difference on different terminal sessions
This reverts commit 047872c25e.
Fixes #3416.
2019-02-05 01:50:14 +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
047872c25e fix: take all env variables into account in genCacheConfig
fixes #3275
2019-01-25 22:41:37 +08:00
Haoqun Jiang
47a28e0e24 fix: plugin sub node_module directory should have higher priority in resolveLoader.modules
in case of interference of unwanted top level dependency hoisting
2018-09-29 01:44:37 +08:00
Haoqun Jiang
fed948a738 fix: also look up loaders in local node_modules in case deps are not hoisted
closes #2599
2018-09-27 21:02:45 +08:00
happy
f0bddd84b3 fix: fix require('@vue/babel-preset-app').version return undefined bug (#2393) 2018-09-10 20:53:31 +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
356eef6100 fix: babel cache should take browserslist into account 2018-08-03 13:07:21 -07:00
Jovino Xu
31e1b4995e chore: fix typo (#1783) 2018-07-07 12:32:35 +02:00
Evan You
204d8f07de feat: modern mode 2018-06-12 23:51:19 -04:00
Evan You
9846cd520c fix: fix caching dependency (close #1384) 2018-05-29 09:29:18 -04:00
Evan You
e5101b415e perf: revert babel/ts thread behavior 2018-05-22 13:25:35 -04:00
Evan You
1075576690 perf: adjust caching and parallelization 2018-05-22 00:09:30 -04:00
test
be9463050e chore: bump babel version 2018-05-18 17:03:24 -04:00
Evan You
453597a09d feat: temporarily fix source map by patching babel 2018-05-11 18:02:54 -04:00
Evan You
f5c0f58673 feat: upgrade to vue-loader 15
BREAKING CHANGE: the "vueLoader" option has been removed. To modify vue-loader
options, use chainWebpack then `config.module.rule(vue).use(vue-loader).tap()`.
vue-loader has been upgraded to v15 and expects different options from v14.
2018-05-04 18:58:11 -04:00
Evan You
65910a05db test: fix exclude for cli-service dynamic entries 2018-05-03 19:06:22 -04:00
Evan You
da4d0b2e2a feat: relex transpile includes + new transpileDependencies option
BREAKING CHANGE: To include a dependency for Babel transpilation, tapping
babel-loader and adding .include() will no longer work. Use the new
transpileDependencies option instead.
2018-05-03 18:18:27 -04:00
Kevin Petit
b285b0bd92 fix(typescript,babel): tests path for babel and typescript plugins (#1058) 2018-04-25 17:46:10 -04:00
Evan You
b8f24872bf feat: parallel mode 2018-01-29 16:23:02 -05:00
Evan You
367b78b08c fix: more global resolve fixes + better error message for missing loaders 2018-01-25 22:35:18 -05:00
Evan You
76dda73ba3 fix: more global service resolve fixes 2018-01-25 21:26:42 -05:00
Evan You
7605bd62d2 feat: add caching for babel 2018-01-24 15:08:21 -05:00
Evan You
16221c1e78 test for cli-service Service & PluginAPI 2018-01-04 17:38:55 -05:00
Evan You
940afcd027 move babel webpack-dev-server client include into serve command 2018-01-04 11:18:44 -05:00
Evan You
aa0679d84d dev server running 2017-12-27 01:07:10 -05:00
Evan You
d190d99a33 wip 2017-12-26 20:14:07 -05:00
Evan You
733bb33c62 build: setup linter 2017-12-25 17:17:48 -05:00
Evan You
b2d6f27438 init 2017-12-24 15:43:26 -05:00