ClarkXia
6f18c3db54
fix: deal with json file when use on-demand compile ( #6548 )
...
* fix: deal with json file when use on-demand compile
* chore: changeset
2023-09-27 13:57:03 +08:00
ClarkXia
1dbcfa51a6
chore: bump version of dependencies ( #6472 )
...
* chore: bump version of dependencies
* fix: update transform rule
* fix: test case
* chore: update core-js
2023-08-21 16:26:00 +08:00
ClarkXia
f95bbc2e71
fix: optimize deprecation warning of webpack ( #6319 )
...
* fix: optimize deprecation warning of webpack
* fix: changelog
2023-06-14 11:09:13 +08:00
ClarkXia
c70c77379d
fix: refactor error handling ( #6286 )
...
* fix: refactor error handling
* fix: logger
* fix: sourcemap
* fix: test case
* fix: test
* fix: add brief error message
* fix: changelog and lint
2023-06-08 18:12:12 +08:00
逆葵
6f7a47e0b4
chore: update dependencies version
2023-04-25 10:49:28 +08:00
逆葵
2d7d4bf1fc
Merge branch 'master' into feat/miniapp-native-events
2023-03-28 11:40:52 +08:00
染陌同学
36475937e8
Feat/define data loader ( #643 )
...
* feat: modify dataLoader
* feat: add type
* feat: add DataLoaderConfig
* feat: modify getData to defineDataLoader
* chore: remove defineDataLoader
* fix: fetcher shoule return promise
* fix: loader may be undefined
* fix: err loader config
* chore: modify example of pha
* feat: modify getData
* chore: modify type and mofiy options of init
* feat: modify fetcher to dataLoaderFetcher and add dataLoaderImport to entry
* chore: modify defaultDataLoaderFetcher
* chore: load data by route id
* feat: modify serverDataLoader and staticDataLoader
* feat: add fetcher when route change
* fix: deal with window undefined
* chore: modify type
* feat: try get data from cache
* feat: support useData
* feat: add defineStaticDataLoader and defineServerDataLoader
* chore: modify getData of example
* fix: should load data
* fix: fix ssg err
* fix: fix dataloader for ssg
* test: modify env of test
* fix: shoule clear cache when route changed
* fix: fix renderMode and add defult remder mode
* fix: add window
* test: add jsdom
* test: modify getData to dataLoader
* test: modify test of clientApp
* test: clear window after each test
* test: remove only
* test: remove only
* chore: modify appear
* fix: Try get data from cache when CSR
* chore: update lock
* chore: remove unused
* refactor: data loader (#685 )
* refactor: set global fetcher
* refactor: set global fetcher
* fix: should not build react in data loader
* fix: test
* test: modify test
Co-authored-by: 水澜 <shuilan.cj@taobao.com>
Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 10:33:11 +08:00
ClarkXia
f9a3829e63
fix: rename getConfig as pageConfig ( #684 )
...
* fix: rename getConfig as pageConfig
* chore: optimize code
* fix: type
* fix: optimzie code
2022-11-15 10:33:11 +08:00
ZeroLing
d2c7e0696d
chore: optimize ( #676 )
...
* chore: optimize with rax-compat docs
* refactor: add mock express types dependency
* refactor: change usage for definePageConfig
* chore: change docs
* docs: ICE to ice.js
* fix: templorary remove the type
* chore: handle with lint problems
* fix: lock file
2022-11-15 10:33:11 +08:00
luhc228
25583ffb55
feat: enhance framework types ( #545 )
...
* feat: enhance inner types
* chore: revert type
2022-11-15 10:32:43 +08:00
ClarkXia
0345af7202
chore: remove useless devDependencies ( #464 )
2022-11-15 10:27:18 +08:00
ClarkXia
2dbe97a76f
fix: lock regenerate-runtime path ( #462 )
2022-11-15 10:27:18 +08:00
ClarkXia
7d6c987b21
feat: pha ( #337 )
...
* feat: scaffold of pha plugin
* feat: scaffold of plugin pha
* feat: pha
* feat: manifest type
* feat: add types
* feat: add test case
* fix: optimize code and test case
* feat: add example of pha
* chore: remove yml file
* chore: bump dependencies version
* feat: pha plugin
* test: add test case
* chore: update lock file
* chore: update lock file
* chore: rename option
* fix: get multipile manifest
* chore: optimize code
* fix: add url prefix
* feat: compile appConfig for start command
* feat: optimize code
* chore: optimize document
* fix: add customDataSource
* feat: remove top level code
* fix: remove code
* fix: optimize code
* fix: optimize code
* fix: plugin
* fix: plugin order
* fix: pha
* feat: add test case
* fix: files
* fix: lint
* fix: url public for dev
* fix: jsx transform in build
* fix: fallback value
* fix: basename
* fix: minify code
* fix: basename
* fix: basename
* chore: remove log
* fix: generate pha manifest
* fix: path for page item
* fix: route id
* chore: optimize test case
* fix: default basename
* fix: split chart
* fix: regex for url
* fix: default basename
* feat: support full path
* fix: default value of url
* chore: optimize code
* chore: comments
* fix: remove exports
* chore: readme
2022-11-14 19:51:45 +08:00
ClarkXia
7bd95ad70d
Revert "feat: plugin for PHA" ( #336 )
2022-11-14 19:51:16 +08:00
ClarkXia
f3fc4c702f
fix: type of ice plugin ( #302 )
...
* fix: standard for ice plugin
* feat: force mts config
2022-11-14 19:46:53 +08:00
ClarkXia
051cf93015
chore: optimize document
2022-11-14 19:44:04 +08:00
luhc228
50be6fa47b
Feat: defineAppConfig ( #265 )
...
* feat: defineAppConfig
* feat: watch
* feat: add defineAuthConfig
* chore: remove NodeNext
* chore: ts-expect-error
* feat: add ./*
* chore: add ts-expect-error
* fix: types error
* chore: declare runtime module
* chore: types
* fix: types
* refactor: types path
* fix: export path
2022-11-14 19:41:27 +08:00
ClarkXia
16b88d947c
chore: bump dependencies version
2022-11-14 19:25:24 +08:00
水澜
2eac971c1b
feat: data loader shaking ( #246 )
...
* fix: lint
* feat: apply swc transform to esbuild
* chore: updata lock file
* refactor: rename params
* fix: types
* fix: add data loader to entry
* fix: add data loader after runtime
* feat: support config exports for ssr
* fix: conflict
* chore: remove debug info
* fix: transform page entry only
* fix: file extension
* fix: file extension
* revert: document
* fix: side effects
* feat: filter pages without getData
* feat: bundle optimization in dev mod
* refactor: side effects is not needed
* refactor: pass swc options to server compiler
* chore: comment
* refactor: runtime chunk is no more needed
* refactor: render data loader according to manifest
* test: data-loader
* chore: rename
* refactor: jsxTransform
* chore: update swc plugin version
* chore: update lock file
* fix: add jsx dev runtime
* chore: update swc plugin version
Co-authored-by: ZeroLing <zhuoling.lcl@alibaba-inc.com>
2022-11-14 19:22:57 +08:00
luhc228
48e80d9796
feat: support bundle cjs deps ( #250 )
...
* feat: support bundle cjs deps
* refactor: remove esbuild plugin
* chore: delete cache
* chore: log
* chore: defineConfig
* fix: comment
* chore: type
* fix: ICE_CORE_SSG
* chore: remove unless set.add
2022-11-14 19:19:50 +08:00
ClarkXia
ecf09cf763
feat: appExport
2022-11-14 19:18:41 +08:00
ClarkXia
0c88d42025
chore: remove useAppData
2022-11-14 19:17:54 +08:00
luhc228
f510bf65cc
fix: fs/promises module not found in node12 ( #186 )
...
* chore: fs/promises not works in node12
* chore: use fse instead fs
* fix: build error in pnpm v7
2022-11-14 19:17:22 +08:00
水澜
27599db870
refactor: getAppData ( #183 )
...
* feat: data loader
* refactor: put load logic to runtime
* feat: pass matched ids
* refactor: reuse initial context
* feat: generate loader template
* fix: name with slash
* fix: name with slash
* feat: throw error
* feat: preload app data
* refactor: initail context to request context
* chore: add comment
* chore: add comment
* fix: type
* fix: merge conflict
* refactor: get app data
* fix: conflict
* fix: csr app data
Co-authored-by: luhc228 <luhengchang228@126.com>
2022-11-14 19:17:10 +08:00
水澜
704247de1e
fix: csr hydrate error ( #176 )
...
* fix: csr hydrate error
* chore: demo for csr
* refactor: update route config
* fix: lint
* chore: update lock yaml
* fix: type
* refactor: pass app to document by context
* fix: lint
* chore: comment
* fix: type
* fix: do not overwrite title if not config
* chore: rename
Co-authored-by: luhc228 <luhengchang228@126.com>
2022-11-14 19:17:10 +08:00