Commit Graph

7 Commits

Author SHA1 Message Date
Kristoffer K
b69697ebba fix(cli): resolve plugins relative to the package context (#5794)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2021-01-22 15:52:12 +08:00
Haoqun Jiang
82aef123d9 test: simplify loadModule special case handling for tests
1. createRequire should have been properly handled in newer Jest
versions: https://github.com/facebook/jest/pull/9469
2. We don't test migrators with Jest mock modules anymore

So it's safe to skip that condition
2021-01-20 16:38:26 +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
01d4bea0c5 fix: should throw errors if there is bad require() in vue.config.js (#5500)
reverts #5305
this makes the tests a little more tedious, need to find a better way
to test these functionalities

fixes #5442
2020-05-19 22:16:59 +08:00
Haoqun Jiang
c6151103b4 test: fix mock module in upgrader test 2020-01-27 23:19:42 +08:00
Haoqun Jiang
15679de2bf refactor: use createRequire to load/resolve modules (#5092)
* refactor: use createRequire to resolve modules

* fix: use file path as createRequire argument; fix loadModule.
2020-01-23 07:08:50 +01:00
Guillaume Chau
08352811e0 feat: local service plugins, closes #1841 2018-07-13 17:39:07 +02:00