Commit Graph

147 Commits

Author SHA1 Message Date
Pooya Parsa
fbe658ffc7 chore: hide esbuild sourcemap warning 2021-04-20 15:22:42 +02:00
Pooya Parsa
d9bb3fa2ee fix types 2021-04-20 15:22:07 +02:00
pooya parsa
5646770cd1
refactor(nitro): use # prefix for aliases (#101) 2021-04-20 13:03:18 +02:00
Pooya Parsa
49e4c038b5 fix(nitro): resolve default export for assets 2021-04-19 22:41:47 +02:00
Pooya Parsa
4e1865358c fix: issues with externals outside of rootDir 2021-04-19 22:41:02 +02:00
Pooya Parsa
bf0132f3e1 chore(nitro): opt in to makeAbsoluteExternalsRelative: 'ifRelativeSource' 2021-04-13 00:08:18 +02:00
Pooya Parsa
f8cb2586cf perf(nitro): externalize buildDir in development
TODO: supporting ignore patterns to include/exclude (rootDir but not buildDir)
2021-04-13 00:06:27 +02:00
Pooya Parsa
b5c77b4c6b chore: fix lint error 2021-04-12 23:54:46 +02:00
Pooya Parsa
9a23c2a553 fix(nitro): absolute external resolution (#80) 2021-04-12 23:52:46 +02:00
pooya parsa
babb70a4bd
feat(nitro): server assets (#83) 2021-04-12 23:28:48 +02:00
pooya parsa
31f06e9f69
feat(nitro): storage support (#76) 2021-04-11 23:22:02 +02:00
pooya parsa
2d60e71fcb
feat(nitro): raw loader (#75) 2021-04-11 20:20:41 +02:00
Daniel Roe
00c7ede623
fix(nitro): exclude rootDir from externals and reinstate automock warning (#66) 2021-04-09 10:03:49 +02:00
pooya parsa
b12cbc5ed2
fix: use globalThis instead of global (#59) 2021-04-06 14:10:57 +02:00
pooya parsa
b3f3dc94f3
feat: module utils and improvements (#38) 2021-04-02 13:47:01 +02:00
Pooya Parsa
a16e13b1de chore: upgrade to monorepo 2021-03-18 15:26:41 +01:00
Pooya Parsa
97478dde96 chore: less verbose server routes table 2021-02-22 19:38:32 +01:00
Pooya Parsa
b7b9fbf927 chore: disable verbose output in test environment 2021-02-22 18:47:32 +01:00
Pooya Parsa
8a22fa333e feat: update preset options
external tracing enabled by default for node. this change is potentially breaking demo
2021-02-22 13:12:59 +01:00
Pooya Parsa
29409f064f add preventAssignment option 2021-02-22 11:31:45 +01:00
pooya parsa
85da52d390 feat: support server directory (#132)
* feat: support server directory

* fix sorting and global

* lazy load api

* pretty print opts

* fix: hide table when no middleware
2021-02-18 17:06:58 +01:00
Daniel Roe
27aef1489f fix: allow numbers in dynamic webpack chunk names (#125) 2021-02-16 12:11:52 +00:00
Daniel Roe
0942d72553 fix: allow matching dynamic page routes 2021-02-16 11:29:18 +00:00
Daniel Roe
c1cd37d8c5 fix: load webpack modules synchronously with require (#104)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-02-16 11:51:53 +01:00
Daniel Roe
65229ffb04 feat: mock debug (#118)
closes #97
2021-02-09 14:16:33 +00:00
Daniel Roe
c76bd35c29 fix: use allowlist approach to chunk name (#101)
closes #93
2021-02-05 18:52:18 +01:00
Xin Du (Clark)
2d0ff10892 fix(rollup): dirnames not generate a sourcemap for the transformation (#83) 2021-01-24 20:16:39 +01:00
Pooya Parsa
5248905dd7 refactor: rebrand to nitro 2021-01-22 20:55:59 +01:00
Pooya Parsa
fd0be27f0c fix: static asset handling with leading slash 2021-01-20 16:00:14 +01:00
Pooya Parsa
9e9b20ef90 fix: bring back nuxt3 support 2021-01-18 12:42:00 +01:00
Pooya Parsa
19e6542d27 feat: enable externals.trace by default 2021-01-12 16:58:05 +01:00
Pooya Parsa
7e682ed663 feat: better error handler 2020-12-12 19:15:56 +01:00
Pooya Parsa
5bbdc2bc65 feat: improved externals and experimental trace with vercel/nft 2020-12-07 22:59:24 +01:00
Pooya Parsa
0199610834 chore: enable back automock plugin 2020-12-07 13:53:32 +01:00
Pooya Parsa
daf0c3e6a5 feat: sourcemap support 2020-12-07 13:36:43 +01:00
Pooya Parsa
4685108c16 fix: add node_modules from cwd to nodeResolve 2020-12-02 14:22:34 +01:00
Pooya Parsa
4890205b6e fix: temporary disable auto mock plugin 2020-12-02 14:21:49 +01:00
Pooya Parsa
0a2f9a3949 fix: update node-resolve options 2020-12-02 14:12:29 +01:00
Daniel Roe
9c25d68511 fix: addresses static assets/azure issues (#49) 2020-12-02 00:28:42 +01:00
pooya parsa
a9b9d19e66 feat: serveStatic (#47) 2020-11-28 23:49:39 +01:00
Pooya Parsa
b010e83008 chore: fix lint issues 2020-11-28 22:13:16 +01:00
Pooya Parsa
7ae8483d21 feat: support typescript via esbuild (closes #42) 2020-11-28 22:11:25 +01:00
Pooya Parsa
ca015deda6 feat: support runtimeConfig (closes #43) 2020-11-28 21:50:16 +01:00
Pooya Parsa
531f6b1e08 fix: remove runtime/ prefix 2020-11-22 22:54:08 +01:00
Pooya Parsa
1f5e82a5bc fix NUXT_FULL_STATIC 2020-11-21 14:58:24 +01:00
Pooya Parsa
dbce482b7e feat: improved sever timing 2020-11-21 14:55:41 +01:00
Pooya Parsa
04fc395149 chore: unnecessary resolve 2020-11-21 12:42:46 +01:00
Pooya Parsa
227e04b92e feat: improved env support 2020-11-21 12:42:02 +01:00
Pooya Parsa
ba0943aa22 revert back auto mock warning 2020-11-21 12:06:51 +01:00
Pooya Parsa
6794b01404 chore: hide automock warn 2020-11-20 22:09:53 +01:00
Pooya Parsa
b5b585c0c8 feat: automatically mock unresolved externals 2020-11-20 22:08:57 +01:00
Pooya Parsa
5c8ac226f1 fix: hide rollup circular and eval 2020-11-20 22:04:48 +01:00
Pooya Parsa
82f6db6bca fix: promisify: false support 2020-11-20 21:13:23 +01:00
Pooya Parsa
68fc208299 fix: lazy is true by default 2020-11-20 21:11:46 +01:00
Pooya Parsa
cd0dd009e0 feat: use h2@10 2020-11-20 21:06:59 +01:00
Pooya Parsa
02a66ab40c feat: expose process.env.SIGMA_PRESET 2020-11-20 15:34:47 +01:00
Pooya Parsa
cb98031cff fix: cloudflare and polyfill 2020-11-20 13:14:16 +01:00
pooya parsa
c06f09e9ab sigma (#36) 2020-11-20 01:16:31 +01:00
Pooya Parsa
047761f8b7 fix: move hrtime polyfill to timing plugin 2020-11-15 03:43:43 +01:00
Pooya Parsa
f2c1589472 fix(timing): include helpers only in entries 2020-11-15 02:34:43 +01:00
Pooya Parsa
aa71b51538 feat: generate meaningful chunkNames 2020-11-15 02:31:50 +01:00
Pooya Parsa
740bf073b2 feat: timing plugin and Server-Timing 2020-11-15 01:52:18 +01:00
Pooya Parsa
5bd6531f5d chore: tweak terser options to improve debugging 2020-11-14 23:23:17 +01:00
Pooya Parsa
609796a944 feat: natively parse and import async webpack chunks 2020-11-14 18:51:56 +01:00
Pooya Parsa
e16aee43ba fix: resolve chunksDirName based on outNames dirname (vercel) 2020-11-14 14:33:31 +01:00
Pooya Parsa
1e34041e8d feat: support dynamic chunks, lazy middleware and cjs target 2020-11-14 14:05:09 +01:00
Pooya Parsa
e3609b6d8a fix: exec require before return 2020-11-14 02:44:33 +01:00
Pooya Parsa
f7378db9e0 feat: add hint to dynamic require for netlify 2020-11-14 02:43:13 +01:00
Pooya Parsa
536155825b fix: add hack for encoding 2020-11-14 01:49:37 +01:00
Pooya Parsa
a5e70eb4b0 fix: use native fetch when node is disabled 2020-11-14 01:11:26 +01:00
Pooya Parsa
c8f4957520 fix: fix mocks and disable buffer since is unnecessary 2020-11-13 19:29:47 +01:00
Pooya Parsa
989f6811c2 feat: better process polyfill 2020-11-13 18:45:03 +01:00
Pooya Parsa
b65cd7862a fix: always mock generic dependencies
also inject after json
2020-11-13 17:18:27 +01:00
Pooya Parsa
2384b8269e feat: improve mocking 2020-11-13 17:14:17 +01:00
Pooya Parsa
2ad4a81362 feat: mock mime packages and fix v1 compat 2020-11-13 15:52:02 +01:00
Pooya Parsa
6ff7c7e02e feat: improve mocks 2020-11-13 14:18:07 +01:00
pooya parsa
af92c53dcd feat: support serverMiddleware (#26)
* feat: support node req, res claases in all envs

* feat: support serverMiddleware
2020-11-12 19:20:55 +01:00
Pooya Parsa
8414e64eeb refactor: add more tructure to runtime dir 2020-11-11 15:03:55 +01:00
Pooya Parsa
aff2372650 fix: configurable publicPath (closes #21) 2020-11-11 14:42:10 +01:00
Pooya Parsa
4f74119739 fix: fix issues with router.base support 2020-11-11 00:04:33 +01:00
Pooya Parsa
c7b88defa4 feat: update vercel and improve internals 2020-11-10 19:19:24 +01:00
Pooya Parsa
55f25aa884 fix windows issues 2020-11-09 15:31:57 +01:00
Pooya Parsa
5b8314245c feat: make cloudflare working 2020-11-06 17:40:00 +01:00
Pooya Parsa
3fa6717882 improve config extending 2020-11-06 14:46:17 +01:00
Pooya Parsa
47d7644b72 refactor: move targets to src, remove template and improve runtime 2020-11-06 10:51:35 +01:00
Pooya Parsa
5fdc6ccfb6 chore: fix eslint issues 2020-11-05 22:59:14 +01:00
Pooya Parsa
9d02552c3c feat: make browser target working again 2020-11-05 22:23:24 +01:00
Pooya Parsa
415db060b0 feat: support staticAssetsBase 2020-11-05 19:53:17 +01:00
Pooya Parsa
274c98f5aa rename default ssr entry to server.js 2020-11-05 16:36:31 +01:00
Pooya Parsa
8f5534c90a refactor: simplify usage with single target 2020-11-05 14:38:15 +01:00
Daniel Roe
d4624abfb9 fix: add prefix to dynamic imports name (#5)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-11-05 13:28:40 +01:00
Daniel Roe
dfdd466270 feat: improve types (#6)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-11-05 13:26:00 +01:00
Pooya Parsa
486c881b2d feat: rewrite as nuxt module 2020-11-05 12:28:39 +01:00
Pooya Parsa
114b5406ac feat: use dynamic require for node targets 2020-11-04 19:19:20 +01:00
Pooya Parsa
16141efe25 fix: resolve runtime provided dependencies 2020-11-04 14:52:12 +01:00
Pooya Parsa
5538f342f7 refactror: separate lib 2020-11-04 14:15:38 +01:00
Pooya Parsa
93f265d5e0 refactor: rename to serverless and improve struct 2020-11-04 12:33:19 +01:00