Commit Graph

41 Commits

Author SHA1 Message Date
Pooya Parsa
903c3de5b6
feat: expose webpack config (#7029) 2020-03-02 19:15:00 +01:00
Xin Du (Clark)
13cc924f02 refactor: use scope variable memo for modern utils (#6954) 2020-02-09 11:44:54 +00:00
Xin Du (Clark)
6ae7718a42
fix(utils): eliminate side effect from modern utils (#6953)
[release]
2020-02-09 12:17:39 +01:00
Pooya Parsa
304fb488dc fix(utils): early return if id is external 2020-01-21 14:05:48 +01:00
Pooya Parsa
d8b84fe263 fix(utils): handled undefined cjs entries
[release]
2020-01-21 13:51:58 +01:00
Pooya Parsa
8907e1553f
feat: HMR support for serverMiddleware (#6881) 2020-01-19 09:34:35 +01:00
crutch12
b2a35d21d7 fix(utils): add catch statement to non function block in serializeFunction (#6776) (#6777) 2019-12-16 22:20:28 +01:00
Cain Hall
ae769ce763 fix(utils): flatRoutes regex for nested routes with trailing slash enabled (#6791) 2019-12-16 21:19:40 +01:00
Xin Du (Clark)
e8aca9eb11 chore: update @nuxtjs/eslint-config to v2 and fix lint errors (#6732) 2019-11-26 23:42:39 +01:00
Yuki Terashima
2d27a4d2dc fix(utils): error when router.trailingSlash is false (#6515) 2019-10-08 10:48:52 +02:00
Pim
49136bcd1b fix(core): clear resolver cache for project files dev mode (#6490) 2019-10-01 13:04:24 +02:00
Alexander Lichter
c202893b9e fix(webpack): correct sass options for sass-loader@8 (#6460) 2019-09-26 14:10:54 +02:00
Pim
0daaf87c83 feat(utils): export sort routes (#6277) 2019-09-01 18:24:21 +02:00
Alexander Lichter
7c90310166 feat(builder, router): enforce uniform trailing slash handling (#6331) 2019-09-01 16:37:25 +02:00
Kevin Marrec
81b5ce22ce feat: externalize typescript support (#5858) 2019-07-24 11:56:44 +04:30
pooya parsa
e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30
Xin Du (Clark)
a1124d2fff
fix(renderer): correctly load nomodule scripts in safari 10 (#6033) 2019-07-06 16:22:50 +01:00
Kevin Marrec
262ea5c31a refactor: prepare for external typescript support (#5854) 2019-06-05 00:18:01 +04:30
Aaron Ransley
d86e510563 fix(utils): handle serializeFunction edge case (#5754) 2019-05-19 23:20:52 +04:30
Sébastien Chopin
03eb049677
fix(builder): watch store dir and serverMiddleware paths (#5681)
* fix(builder): Watch store dir to restart Nuxt app when options.store=false

* hotfix: Linting issues

* hotfix: Use path.resolve instead of path.join

* test: Update test for watcher

* hotfix: revert to path.join and fix tests

* hotfix: Fix coverage for hard to test condition

* hotfix: Fix test for Windows

* Update builder.js

* fix lint error

* fix: Cache serverMiddlewarePaths
2019-05-10 15:03:07 +02:00
Xin Du (Clark)
a21555c8cd fix(utils): node v8 not support dotAll in regex (#5608) 2019-04-26 23:47:51 +04:30
pooya parsa
a354d9761f atomic children removal 2019-04-24 20:43:59 +04:30
Xin Du (Clark)
31a15559e5 refactor: move modern detection from server to utils (#5584) 2019-04-23 13:46:56 +04:30
Pooya Parsa
111132df23
refactor: avoid using _path variable (#5582) 2019-04-22 23:20:07 +04:30
Jonas Galvez
88a78ffa58 fix(utils): serialize inline functions (#5051) (#5580) 2019-04-22 23:17:42 +04:30
Pooya Parsa
d0afaa1daf
fix(cli): config cache invalidation + refactors (#5500) 2019-04-11 14:34:21 +04:30
Pim
39bbe46ecb fix(cli): catch all possible errors thrown from proper-filelock (#5347) 2019-03-23 11:16:00 +04:30
Pim
7c24280a7a fix: apply default lock options before setting lock (#5320) 2019-03-21 23:37:50 +03:30
Pim
65a431d68c fix: relax lock settings (#5280) 2019-03-19 14:54:23 +01:00
Pim
4e51723efc feat(cli): lock project during build or generate (#4985) 2019-03-03 11:42:46 +03:30
Alexander Lichter
69dfd848d7 refactor: some small stuff (#4979)
* refactor: flatten ifs

* refactor: unnecessary curly brackets

* refactor: unnecessary else

* refactor: promise.all instead of for-await

* refactor: apply changes suggested by @clarkdo

* chore: fix typo

* refactor: early return

* refactor: add removal TODOs

* refactor: more descriptive variable name

* refactor: prefer template string

* refactor: one-line

* refactor: early returns

* refactor: early return

* refactor: parallel promises

* refactor: early return and no else

* refactor: spread operator

* refactor: spread operator and early return

* fix: remove error and throw string instead

* fix: always return true

* refactor: clear multiline ternary

* refactor: err stack assignment

* refactor: early return and async/await

* refactor: one line

* refactor: early return

* refactor: early return

* refactor: promise.all

* refactor: args spread
2019-02-08 17:25:11 +01:00
pooya parsa
a96355e497 merge branch 2.x 2019-02-05 01:07:21 +03:30
Jonas Galvez
14f43da9b2 fix: serialize external function (#4916) 2019-02-01 17:01:16 +03:30
Xin Du (Clark)
96bab9f09c test: unit tests for @nuxt/util (#4880) 2019-01-29 22:53:42 +03:30
Xin Du (Clark)
b23f5c9b4b feat(server): timing option for Server-Timing header (#4800) 2019-01-19 21:44:54 +03:30
Alexander Lichter
40fbe5ba47 refactor: cleanups and code style improvements (#4788) 2019-01-18 00:48:29 +03:30
Clark Du
e594f09914
test: mock require.main 2019-01-14 20:31:39 +00:00
Alexander Lichter
eef2af35e4 fix: no false positives for plugins with index.js (#4714)
resolves #4713 [release]
2019-01-08 22:55:56 +03:30
Pim
605b76073b chore: lint vue-app templates (#4689) 2019-01-06 11:26:59 +03:30
Kevin Marrec
4d5274215a feat(ts): add TSX support (#4613) 2018-12-23 02:12:20 +03:30
Xin Du (Clark)
324135df51 refactor: @nuxt/utils (#4609) 2018-12-23 00:35:13 +03:30