Commit Graph

180 Commits

Author SHA1 Message Date
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 8028d9fff7 chore: dependency maintenance 2020-02-02 23:08:35 +08:00
Haoqun Jiang 0f377bd31d feat: upgrade to eslint 6 (#4933)
* feat: scaffold projects with eslint 6

* style: eslint fix

* refactor: do not use hard-coded ecmaVersion, use babel-eslint for now

* fix: upgrade to @vue/eslint-config-standard

* style: continue fix lint errors

* chore: upgrade to eslint-plugin-vue@^6.1.2

* refactor: use `ecmaVersion: 2020` for dynamic import syntax support

* test: fix baseESLintConfig

* chore: also update yarn.lock to fix CI caches

* chore: update lockfile again, fix babel regressions

* test: nightwatch tests should fail if lint errors occur

* chore: update the lockfile (again), fixing a bug in airbnb config
2020-01-14 10:13:54 +08:00
Yingya Zhang 9ec2d34e65 feat: specify babel runtime version (#4959) 2020-01-06 16:11:03 +08:00
Haoqun Jiang 3b7227d544 v4.1.2 2019-12-28 20:54:27 +08:00
Haoqun Jiang 3873d02382 chore: dependency maintenance 2019-11-29 15:15:17 +08:00
Haoqun Jiang 2ddcc65dfe v4.1.1 2019-11-27 23:14:15 +08:00
Haoqun Jiang d316a18789 v4.1.0 2019-11-27 14:58:46 +08:00
Haoqun Jiang ba9596dfa6 test: asyncToGenerator is no longer used in async/await transformation
See https://github.com/babel/babel/pull/9481
2019-11-27 00:35:33 +08:00
Haoqun Jiang 84aed8ef10 chore: dependency maintenance 2019-11-27 00:34:22 +08:00
Haoqun Jiang 2c13800051 chore: fix typo in comment [ci skip] 2019-11-25 16:18:35 +08:00
Yingya Zhang 0f6ec2e53d fix: typo atfer (#4851) 2019-11-25 16:11:29 +08:00
Haoqun Jiang 1c41371a42 v4.1.0-beta.0 2019-11-09 21:49:23 +08:00
Haoqun Jiang e1d156ff85 fix: add sourceType: 'unambiguous' to babel preset (#4797)
fixes #4773
2019-11-07 09:27:53 +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 17925c6ae6 v4.0.5 2019-10-22 19:53:34 +08:00
Haoqun Jiang 86c500fd4b chore: dependency maintenance (#4734)
* chore: dependency maintenance

* Revert "test: replace `waitForFunction` with `waitForXPath`"

This reverts commit b2848aeeaf.
2019-10-21 20:13:21 +08:00
Haoqun Jiang d82a2bbe26 v4.0.4 2019-10-18 15:48:03 +08:00
Haoqun Jiang aa29fd1526 v4.0.3 2019-10-17 15:59:03 +08:00
Haoqun Jiang 8b08c73e8e v4.0.2 2019-10-17 10:22:54 +08:00
Haoqun Jiang 81f84577e4 v4.0.0 2019-10-16 19:19:06 +08:00
Haoqun Jiang 5cce80c2f7 v4.0.0-rc.8 2019-10-11 16:11:02 +08:00
Haoqun Jiang da9269b328 feat(babel-preset): set target to node whenever NODE_ENV === 'test' (#4663)
Typically only unit test frameworks do so.
2019-10-10 10:00:31 +08:00
Haoqun Jiang 58592fed4e v4.0.0-rc.7 2019-10-01 23:35:39 +08:00
Haoqun Jiang b823ca84d3 v4.0.0-rc.6 2019-09-30 20:27:57 +08:00
Haoqun Jiang d49f784eb0 v4.0.0-rc.5 2019-09-30 18:39:52 +08:00
Haoqun Jiang 21257378d7 v4.0.0-rc.4 2019-09-25 12:31:11 +08:00
Haoqun Jiang 863d6bbfbf v4.0.0-rc.3 2019-09-10 00:05:39 +08:00
Haoqun Jiang d37d68afba v4.0.0-rc.2 2019-09-08 11:52:59 +08:00
Haoqun Jiang df0f813703 v4.0.0-rc.1 2019-09-04 16:19:42 +08:00
Haoqun Jiang 91024a7843 v4.0.0-rc.0 2019-08-21 17:48:28 +08:00
Haoqun Jiang f9a9880d93 v4.0.0-beta.3 2019-08-08 11:10:03 +08:00
Haoqun Jiang bf983d7290 test: fix objectSpread test
In babel 7.5.x releases, something has changed in the objec spread
plugin, the helper now may be inlined rather than imported, so we now
only check for the invocation in the test.
2019-08-08 01:39:41 +08:00
Haoqun Jiang 7a399ef7e2 v4.0.0-beta.2 2019-07-30 00:22:38 +08:00
Haoqun Jiang 575349982b v4.0.0-beta.1 2019-07-25 10:40:03 +08:00
Haoqun Jiang 00996ba7cf v4.0.0-beta.0 2019-07-22 22:23:01 +08:00
Haoqun Jiang 615ae0f5b7 v4.0.0-alpha.5 2019-07-14 23:12:42 +08:00
Haoqun Jiang bd82649a64 v4.0.0-alpha.4 2019-07-06 19:51:01 +08:00
Min ho Kim c0aa2bb310 Fix typos (#4241) 2019-07-06 07:09:29 +03:00
Haoqun Jiang 300d2aa2d4 v4.0.0-alpha.3 2019-07-04 09:08:42 +08:00
Haoqun Jiang 0c2ebc4ae2 v4.0.0-alpha.2 2019-07-03 15:42:06 +08:00
Haoqun Jiang 8fa6fa694a v4.0.0-alpha.1 2019-05-25 17:48:40 +08:00
Haoqun Jiang 2ce1fc0982 chore: update deps 2019-05-25 14:34:43 +08:00
Thorsten Lünborg 65a35db0ac feat(babel-preset-app): Bump jsx dependency version (#3978)
@vue/babel-preset-jsx 1.0.0 has been released. It doesn't have any breaking changes from the latest beta that we included so far.
2019-05-11 17:56:00 +08:00
Haoqun Jiang 63f501a2ca v4.0.0-alpha.0 2019-05-01 00:19:37 +08:00
Haoqun Jiang 826c3292de chore: update dependencies 2019-04-30 18:12:18 +08:00
Haoqun Jiang 94b41c9605 feat!: upgrade to core-js 3 (#3912) 2019-04-30 10:31:17 +08:00
Haoqun Jiang 0dbfa5a0bf v3.7.0 2019-04-28 14:21:35 +08:00
Haoqun Jiang bc1a345fe1 fix: should not add polyfills from transform-runtime plugin (#3899)
The basic idea is the same as #3730, except that this time we use babel-plugin-module-resolve for aliasing instead of relying on webpack.
2019-04-28 13:47:27 +08:00