ClarkXia
93b9f70208
feat: swc plugin for keep platform code ( #414 )
2022-11-15 10:15:15 +08:00
ClarkXia
0347c741f8
fix: compile react-router and react-router-dom ( #378 )
2022-11-15 10:15:12 +08:00
ClarkXia
b9b8ccb04f
feat: add transform pipe for esbuild plugin ( #394 )
...
* feat: support pipe transform
* feat: add transform pipe for esbuild plugin
* fix: prebundle
* fix: webpack transform order
* fix: make sure transform is exsist
* feat: support resolveId and load
* fix: resolve id
* fix: return value
* chore: comment
2022-11-15 10:15:12 +08:00
ClarkXia
7c94696aa7
fix: cache root for swc plugin ( #403 )
...
* fix: cache root for swc plugin
* chore: lint
2022-11-15 10:15:12 +08:00
ClarkXia
e000856a7e
fix: the order of transform plugins ( #391 )
2022-11-15 10:15:12 +08:00
ClarkXia
f95eb0b0bf
feat: pass server option to config transform ( #390 )
2022-11-15 10:15:12 +08:00
水澜
00f75371ed
feat: getAppData ( #375 )
...
* feat: getAppData
* fix: remove dead code
* fix: should remove default export for app entry too
* docs: app data
2022-11-15 10:15:12 +08:00
ClarkXia
7661e2967f
fix: merge swc options for sever compiler ( #382 )
...
* fix: merge swc options for sever compiler
* fix: create new object
* fix: lock @swc/core version
* chore: update lock
* fix: compile options
2022-11-15 10:15:08 +08:00
ClarkXia
dca51484c2
feat: support syntax feature by user config ( #376 )
...
* feat: support sytax feature by user config
* docs: add syntaxFeatures docs
* fix: remove sourcemap of esbuild use swc soucemap instead
* fix: default value of swc options
* fix: merge config
2022-11-15 10:14:38 +08:00
水澜
1d1bb89778
refactor: swc plugin ( #346 )
...
* fix: basename in faas
* fix: if basename not exist
* refactor: swc plugin
* fix: deps
* fix: plugin path
* fix: swc plugin path
* fix: lock file
* fix: conflict
* fix: transform jsx by default
* feat: const modules
* fix: lock file
* feat: keep platform
* fix: uppercase first letter
* chore: comment for swc config
* revert: prebunlde
* revert: regenerator config
* chore: map from swc is string
* fix: beta version
* test: keep platform
2022-11-15 10:13:53 +08:00
ClarkXia
48603cdf8f
feat: support swc options for plugin-rax-compat and onappear on rax-compat ( #349 )
...
* feat: support swc options for plugin-rax-compat
* chore: example
* test: fix test case
* test: fix test case
* test: fix test case
* fix: outputdir
* fix: onappear for no ref cases
* fix: merge options
* fix: appear polyfill
* chore: remove appear polyfill dependency
* fix: add swc helpers
* fix: onappear on rax-compat
* refactor: format code and not to use react.frowardRef
Co-authored-by: ZeroLing <zhuoling.lcl@alibaba-inc.com>
2022-11-14 19:55:00 +08:00
ClarkXia
064e290ec6
feat: optimize log ( #344 )
...
* fix: optimize webpack log
* fix: merge error
* chore: remove log
* chore: optimize log
* chore: optimize code
2022-11-14 19:54:37 +08:00
luhc228
4bf28c6bb5
feat: optimize server compile ( #334 )
...
* feat: support compile server bundle after the webpack compile end
* feat: support watch appConfig
* chore: update .ice to RUNTIME_TMP_DIR
* chore: optimize code
* chore: remove build condition
* chore: remove SERVER_OUTPUT
* chore: remove compileMiddleware
* chore: comment
* fix: outputDir
* fix: comment
* chore: add preBundle option
* feat: pass serverCompileTask to plugin
* fix: get serverCompileTask from extendsPluginAPI
2022-11-14 19:53:48 +08:00
luhc228
b84cd904ab
fix: outputDir ( #289 )
...
* fix: outputDir
* fix: generate error output path
* fix: comment
* chore: remove outputDir config
* chore: remove comment
* fix: build fail
* feat: optimize code
2022-11-14 19:53:32 +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
841ff5964c
fix: remove hmr for data-loader ( #322 )
2022-11-14 19:50:07 +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
luhc228
4cb0acd279
fix: can't generate html when set basename in ssg ( #281 )
...
* fix: ssg basename
* fix: bundle server bundle error
* feat: add fastRefresh config
* chore: add comment
2022-11-14 19:42:44 +08:00
ClarkXia
cc5817938b
feat: pha plugin
2022-11-14 19:25:38 +08:00
ZeroLing
fb72b42ae9
fix: remove event alias
2022-11-14 19:25:28 +08:00
ClarkXia
16b88d947c
chore: bump dependencies version
2022-11-14 19:25:24 +08:00
luhc228
5b651061ae
feat: package watch ( #267 )
...
* feat: package watch
* feat: watch
* chore: remove package watch
* feat: watch and build
* fix: build
* chore: remove prebundle from build
* chore: rename
2022-11-14 19:23:02 +08:00
水澜
d5f44a28a7
fix: hot alias ( #269 )
...
* fix: hot alias
* fix: disable hot for data loader
2022-11-14 19:23:02 +08:00
luhc228
a09352dc89
feat: support modify webpack plugins ( #261 )
2022-11-14 19:23:02 +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
ZeroLing
b0ba0b8548
chore: monorepo
2022-11-14 19:20:46 +08:00
ZeroLing
b727c4ded6
chore: move to @ice/runtime/jsx-runtime
2022-11-14 19:20:46 +08:00
ZeroLing
491fcd9b5d
chore: add @ice/jsx-runtime dependency
2022-11-14 19:20:45 +08:00
ClarkXia
ccd97bec33
chore: bump version of react-refresh ( #252 )
2022-11-14 19:20:08 +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
563df1f06a
chore: revert
2022-11-14 19:18:59 +08:00
ClarkXia
ecf09cf763
feat: appExport
2022-11-14 19:18:41 +08:00
ZeroLing
2d15e80f47
refactor: support unit for project
2022-11-14 19:17:53 +08:00
luhc228
d76456bbf5
fix: oom in dev ( #234 )
...
* fix: oom in dev
* fix: lint
2022-11-14 19:17:27 +08:00
luhc228
f739ad306e
fix: not compile deps when no set compileDeps ( #233 )
2022-11-14 19:17:27 +08:00
ClarkXia
84cf9bc9ac
fix: improve compile experience ( #232 )
...
* fix: improve compile experience
* chore: optimze code
2022-11-14 19:17:27 +08:00
luhc228
1c1189ef16
fix: webpack/hot alias ( #223 )
...
* fix: webpack/hot alias
* fix: comment
2022-11-14 19:17:27 +08:00
ClarkXia
b10b336514
Refactor service ( #159 )
...
* feat: refactor service
* fix: functional plugin
* fix: getCompilerPlugins
* feat: add log
* fix: refactor webpack compiler
* chore: update lock
* fix: remove useless code
* fix: config type
* chore: rename folder
* chore: optimize code
* fix: mock
* fix: ssr render
* fix: types
* chore: unused vars
2022-11-14 19:17:27 +08:00
ClarkXia
9fa14f3aa2
feat: split chunks ( #163 )
...
* feat: split chunks
* chore: lock
* fix: runtime chunk
* fix: runtimeChunk
2022-11-14 19:17:27 +08:00
luhc228
22e784398a
feat: compile runtime ( #209 )
...
* feat: compile runtime
* feat: ts 4.7
* chore: node to default in exports
* chore: lock
2022-11-14 19:17:27 +08:00
ClarkXia
d1d5912394
fix: hmr failed when reload ( #202 )
2022-11-14 19:17:25 +08:00
ClarkXia
070e707944
feat: serve static assets ( #164 )
...
* feat: server static assets
* chore: update lock
* fix: dev server
* chore: remove log
* fix: middleware order
* chore: lock file
* chore: types
* chore: types
2022-11-14 19:17:25 +08:00
luhc228
6480a214b9
feat: add rpx2vw postcss plugin ( #193 )
2022-11-14 19:17:25 +08:00
luhc228
f9d6b744d9
fix: hmr fail ( #189 )
...
* fix: hmr fail
* chore: comment
2022-11-14 19:17:25 +08:00
水澜
5af5199972
feat: preload data ( #158 )
...
* 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
* fix: types error
* fix: merge error
Co-authored-by: luhc228 <luhengchang228@126.com>
Co-authored-by: ClarkXia <xiawenwu41@gmail.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
大果
69c7ecb251
feat: support tree-shaking react-router deps when only one route ( #86 )
...
* feat: support tree-shaking react-router deps when only one route
* chore: optimize history API
* fix: typo error
* chore: make esbuild compile @ice/runtime add inject env vars
* chore: make esbuild compile @ice/runtime add inject env vars
* chore: resolve conflict
* feat: mock react-router api when disable router
* feat: env
* fix: test
* feat: support dotenv
* chore: add stringify
* chore: lock build-scripts
* feat: add removeHistoryDeadCode userConfig
* fix: duplicate register of routes
* fix: default value of define
* chore: optimize code
* fix: typo
* chore: upgrade react
* fix: code
* chore: optimize matchRoutes
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-14 19:17:06 +08:00
ClarkXia
e75a55bcaf
fix: errors when publish ( #170 )
...
* chore: fix publish version
* fix: alias webpack hot from compiled package
2022-11-14 19:16:51 +08:00
ClarkXia
cfc0860e7c
fix: userConfig of minify ( #165 )
...
* fix: userConfig of minify
* fix: minify options
2022-11-14 19:16:51 +08:00
水澜
97f7388ccf
feat: suspense ssr ( #143 )
...
* feat: suspense ssr
* feat: stream render
* feat: downgrade to document
* feat: support render document only
* fix: typo
* refactor: downgrade for page
* fix: typo
* refactor: piper
* refactor: navigator
* chore: comment
* fix: typo
* feat: add log
* refactor: piper to pipe
* refactor: rename
* feat: log for error
* refactor: pipe in else
* fix: lint
* refactor: rename to pipe
* feat: add downgrade info
2022-11-14 19:16:51 +08:00
ClarkXia
7305be723a
feat: pre bundle for dependencies ( #138 )
...
* feat: rename folder
* feat: bundle scripts
* feat: ncc
* fix: pre bundle
* chore: optimize code
* chore: terser options
* fix: test case
* fix: package fail to pack
* feat: tsChecker and eslint
* chore: ts type
* fix: pack scripts
* fix: same webpack instance (#146 )
* fix: same instance of webpack
* fix: same instance of webpack
2022-11-14 19:16:51 +08:00