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
水澜
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
水澜
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
水澜
e0297618b1
refactor: route wrapper ( #135 )
...
* refactor: wrapper
* feat: support wrapper layout
* chore: demo for auth
* fix: typo
* fix: typo
* fix: typo
* fix: typo
* fix: typo
* feat: generate layout info when build
* refactor: wrapper for layout
* test: update snapshot for layout
* fix: typo
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
shuilan.cj
740595cce0
feat: upgrade to react 18
2022-11-14 19:16:38 +08:00
luhc228
de39aedb16
feat: cli options ( #120 )
...
* feat: support analyzer
* feat: support https
* feat: support force remove cache
* chore: config order
* chore: remove todo
* chore: self-signed-cert
* chore: self-signed option
2022-11-14 19:16:17 +08:00
ClarkXia
8f4f79dae5
feat: minify and dropLogLevel ( #119 )
...
* feat: minify and dropLogLevel
* fix: test case
2022-11-14 19:16:17 +08:00
luhc228
7701b09595
Fix: react-jsx error ( #113 )
...
* fix: react-jsx error
* chore: remove blank line
* chore: polyfills
* chore: remove rootDir
* chore: remove hasJSXRuntime function
* fix: error
* fix: error
2022-11-14 19:16:17 +08:00
水澜
99e586bf7c
Feat nested routing ( #112 )
...
* feat: nested routing
* fix: update page config after navigate
* fix: initial value
* refactor: fn name
* feat: avoid load data for old route
* refactor: decoupling the dependency to page
* refactor: types for getConfig
* refactor: use prmomise
* chore: rename
* test: filter matched route
* chore: optimize types
* feat: support useAppData
* chore: just play
* chore: remove log
* chore: resolve conflict
* refactor: pages to routes
* fix: page to route
* refactor: merge value
Co-authored-by: liuxiong.lx <liuxiong.lx@alibaba-inc.com>
2022-11-14 19:16:12 +08:00
ClarkXia
b50d478103
feat: optimize output folder ( #115 )
...
* feat: optimize folder
* fix: assets transform
* fix: optimze code
* fix: optimize code
2022-11-14 19:15:57 +08:00
luhc228
54163342ef
Feat: define routes and ignore route files ( #69 )
...
* feat: support define routes
* fix: test
* fix: test
* chore: undefined type
* fix: conflict
* chore: remove pages str from route id
* fix: watch route change
* fix: warn
* fix: test
* fix: test
* chore: example
* chore: add route-gen example
* feat: add integration test
* chore: test
* chore: update config file
* chore: remove pnpm cache
* chore: test
* chore: remove test:ci from ci workflow
* chore: update build-scripts version
* chore: build fixture
* chore: remove devServer test
* chore: buildFixture
* feat: add vitest
* chore: add ts-ignore
* chore: node ci version
* chore: comment bundle analyzer
* chore: add test timeout
* fix: lint
* chore: remove threads
* chore: set maxThreads and minThreads
* chore: add maxConcurrency
* chore: remove coverage
* chore: threads
* chore: set threads to false
* fix: conflict
* fix: comment
2022-11-14 19:15:57 +08:00
luhc228
e8407ed19a
Feat: support css modules in ssr ( #43 )
...
* feat: support css module in ssr
* chore: lock
* chore: type
* fix: transform esbuild-style-plugin in jest env
* fix: test fail
* chore: transformIgnorePatterns
* chore: ci test step
* chore: -max-old-space-size
* chore: transformIgnorePatterns
* chore: transformIgnorePatterns
* chore: transformIgnorePatterns
* feat: esbuild-css-plugin
* refactor: esbuild plugins
* chore: esbuild plugin dir
* fix: build error
* fix: lint
* fix: conflict
* chore: add desc
* chore: add comment
* chore: set extract to false
* chore: add more desc
2022-11-14 19:15:46 +08:00
luhc228
3008689844
chore: defineUserConfig to defineConfig ( #110 )
2022-11-14 19:15:33 +08:00
水澜
525142f9d4
refactor: hydrate document ( #74 )
...
* feat: update page config after link
* Rename Document.tsx to document.tsx
* chore: add comment
* test: routing
* fix: test utils of puppeteer page
* test: update pageconfig after route
* chore: add origin source
* fix: meta tag
* fix: add s
* feat: reuse the links already loaded
* refactor: hydrate document
* refactor: pass data by app context
* refactor: get assets in document
* refactor: pass app as children
* refactor: use app context
* revert: document
* refactor: pass document by app context
* Rename document.tsx to Document.tsx
* fix: hydrate error
* chore: add comment
* feat: toggle for ssr
* refactor: entry options
* refactor: merge simple functions
* feat: downgrade to csr
* refactor: ssr entry
* fix: file name
* fix: remove deadcode
* Rename generateHtml.ts to generateHTML.ts
* fix: remove deadcode
* fix: remove deadcode
* refactor: remove block scripts
* feat: pass ssr flag to csr
* fix: remove ssg flag
* fix: spelling
* refactor: pass ssr flag to hydrate
* chore: add todo for runtime
* fix: typo
* chore: add todo for load links
* chore: send html for send html
* refactor: remove config for custom rootId
* feat: load page assets
* feat: ssr config
* refactor: disable csr hydrate warning
* chore: add issue link
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-14 19:15:29 +08:00
luhc228
d11f461d6b
refactor: global layout ( #40 )
2022-11-14 19:14:39 +08:00
ClarkXia
748adfb2c4
refactor: create @ice/app for framework ( #67 )
...
* fix: package name
* refactor: main package for ice
* fix: test case
* test: test case
* test: run context without built-in plugin
* test: add console level
* test: test case
* fix: remove built-in plugin
* test: use json file
* Revert "test: use json file"
This reverts commit be309d7df5a00fcc14fdc54fe2a63c9bce54221c.
* fix: update build-scripts
* fix: optimize code
* fix: exports field
* chore: use consola instead of console
* fix: optimize code
2022-11-14 19:14:32 +08:00
大果
4552afaec8
chore: refactor router ( #58 )
...
* chore: refactor router
* chore: add example
* fix: load all modules in first request
* fix: route module load
* chore: remove unused param
* fix: rerender twice
* fix: loadRouteModules params
Co-authored-by: luhc228 <luhengchang228@gmail.com>
2022-11-14 19:14:14 +08:00
ClarkXia
43a143de6d
feat: support defineUserConfig ( #53 )
...
* feat: support config file
* feat: config file
* feat: add config watch
* fix: createServer path
* feat: add json support
* chore: space
* fix: add browserlist and webpack bundle analyze
* fix: update package name
2022-11-14 19:13:53 +08:00
ClarkXia
6f9e64bea5
fix: improve framework config ( #36 )
...
* feat: config
* fix: webpack config
* feat: user config
* fix: css minimizer option
* fix: css minimizer option
* fix: alias with root
* fix: default define
* chore: optimize code
* fix: optimize code
* chore: update comment
* chore: lint
* chore: remove useless code
* fix: assets mainfest
* fix: test case
2022-11-14 19:12:43 +08:00
ClarkXia
647996e63e
feat: define runtime value ( #30 )
...
* feat: define runtime value
* chore: remove console
* test: fix test option
* fix: remove process fallback for client
* fix: optimize code
* feat: optimize code
* fix: optimize code
* fix: types
* chore: optimize code
* test: add test case
* fix: remove useless code
* chore: optimize code
* chore: optimize code
2022-11-14 19:12:27 +08:00
luhc228
de7ec7dfd3
feat: rewrite matchRoutes function
2022-11-14 19:08:44 +08:00
shuilan.cj
4a56072283
fix: aplus blocks the puppeteer load page
2022-11-14 19:08:05 +08:00
shuilan.cj
498877ccdb
refactor: root -> main
2022-11-14 19:06:40 +08:00
luhc228
e7735ec588
feat: await chunk import in CSR ( #35 )
...
* chore: remove this is undefined in esm warning
* chore: remove plugin-router
* feat: merge render
* feat: merge defaultAppConfig
* feat: support redirect without lazy
* fix: redirect error
* fix: ssr render error
* feat: add transition file
* refactor: route
* chore: update transition
* refactor: transition
* chore: ProvidePlugin
* chore: remove console
* chore: add router-dom server reference
* feat: add PageContext
* fix: comment
* chore: BrowserEntry
* chore: comment
* chore: update lock
* chore: error
* chore: loadRoutesModules
* feat: initialContext types
2022-11-14 19:05:10 +08:00
shuilan.cj
1d16997af8
fix: page config type
2022-11-14 19:03:39 +08:00
shuilan.cj
b99bf43e3a
fix: ts error
2022-11-14 19:01:14 +08:00
shuilan.cj
d43164123a
feat: get assets from manifest
2022-11-14 19:01:14 +08:00
shuilan.cj
eaeb94e782
fix: block css
2022-11-14 19:00:56 +08:00
shuilan.cj
d4cbe9182b
feat: route data
2022-11-14 18:59:05 +08:00
大果
2b11d0578e
feat: router ( #28 )
...
* feat: generate route manifest
* chore: lock
* feat: support generate nested route manifest
* chore: type
* chore: rename test to tests
* chore: remove caseSensitive
* chore: support generate routes
* fix: lint
* fix: lint
* feat: add componentName
* feat: support generate route
* feat: not add Router when only has one page
* fix: merge confict
* refactor: service route generate
* chore: update route-manifest readme
* test: add more route test cases
* chore: remove comment
* test: add invalid routes test case
* chore: update invalid char judge logic
* fix: comment
* fix: lint error
* chore: lock
Co-authored-by: luhc228 <luhengchang228@gmail.com>
2022-11-14 18:49:43 +08:00
shuilan.cj
ecae77974d
fix: style path
2022-11-14 18:04:37 +08:00
shuilan.cj
763452108a
fix: lint
2022-11-14 18:03:49 +08:00
luhc228
33747c0cb8
feat: more webpack config ( #18 )
...
* feat: esm
* fix: require in esm
* fix: test fail
* feat: css loader
* feat: hmr
* feat: cache
* feat: optimization
* feat: postcss
* feat: open preview browser
* feat: assets loader
* fix: ignore swc compile document
* chore: type
* fix: test
* fix: comment
* chore: add @ice/runtime
* chore: remove example page
* chore: add openChrome.applescript
* feat: use outputDir
* fix: comment
* chore: update pnpm lock
* fix: outDir
* chore: remove document ignore
* feat: add isServer params
2022-11-14 18:01:26 +08:00
shuilan.cj
e96d5f8f7d
fix: lint
2022-11-14 18:00:23 +08:00
大果
400b31e4e6
feat: support useAppContext API ( #26 )
2022-11-14 17:54:57 +08:00
shuilan.cj
af020d04b9
feat: ssr entry
2022-11-14 17:52:55 +08:00
liuxiong.lx
72a6f3bfb7
feat: rework entry
2022-11-14 17:52:01 +08:00
大果
6bbc638e45
feat: render router ( #17 )
...
* feat: renderRouter
* fix: lint
* fix: test case
* feat: remove renderComponent
* chore: add types
* fix: scripts
* chore: build order
* chore: remove workspace from version
* chore: upgrade lock
* chore: upgrade lock
2022-11-14 17:49:04 +08:00
大果
49ff12f30b
feat: runtime structure & output dir ( #16 )
...
* chore: optimize runtime
* chore: fix lint
* fix: test case lib -> esm
2022-11-14 17:48:18 +08:00
luhc228
7c171732a3
feat: use esm standard ( #14 )
...
* feat: esm
* fix: require in esm
* fix: test fail
2022-11-14 17:47:51 +08:00
ClarkXia
5d43928afe
chore: refactor package structrue ( #10 )
...
* chore: refactor package structrue
* chore: remove unexpected code
* fix: package info
* chore: fix readme
* chore: version
2022-11-14 17:45:35 +08:00
水澜
9a062c08a8
feat: render document ( #8 )
...
* feat: render document
* fix: lint
* fix: ts lint
* chore: update lock info
* fix: lint
* fix: conflict
* fix: conflict
Co-authored-by: luhc228 <luhengchang228@gmail.com>
2022-11-14 17:44:30 +08:00
luhc228
2958c633b9
fix: type error
2022-11-14 17:43:47 +08:00
ClarkXia
282543d2df
feat: basic runtime
2022-11-14 17:42:51 +08:00
luhc228
34b024a970
feat: add plugin-router
2022-11-14 17:41:47 +08:00
luhc228
75dba1b423
feat: update webpackConfig
2022-11-14 17:38:35 +08:00
luhc228
0f8b11f400
chore: temp
2022-11-14 17:37:37 +08:00
luhc228
22c7049243
feat: render react component
2022-11-14 17:37:24 +08:00
ClarkXia
7c665bee30
feat: basic icejs cli
2022-11-14 17:27:32 +08:00
ClarkXia
451699be44
fix: lint
2022-11-14 17:25:27 +08:00
ClarkXia
2fcfd8f118
fix: lint
2022-11-14 17:25:27 +08:00
鲲尘
bc43ca3300
fix: lint
2022-11-14 17:24:33 +08:00
鲲尘
26ffa95e90
chore: first commit
2022-11-14 17:24:15 +08:00
ClarkXia
ac910ed2dc
refactor: remove 2.x code
2022-11-14 17:17:45 +08:00
luhc228
de9092eec3
feat: support nodeExternals ( #5474 )
...
* feat: support nodeExternals
* feat: support excludes
* chore: add bundled inner deps
* fix: undefined error
2022-08-30 12:17:41 +08:00
luhc228
1ee7db0419
fix: some i18n bugs ( #5400 )
...
* fix: i18n plugin not work in IE11
* feat: add setting for block cookie setting i18n locale (#5437 )
* feat: add setting for block cookie setting i18n locale
* add I18nAppConfig to IAppConfig & change appConfig key to i18n
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
* fix locale will always in default when execute history.push in cookie blocked mode (#5441 )
* feat: add setting for block cookie setting i18n locale
* add I18nAppConfig to IAppConfig & change appConfig key to i18n
* fix: fix locale will always in default when execute history.push in cookie blocked mode
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
* fix: modifyHistory params delivery error (#5442 )
* feat: add setting for block cookie setting i18n locale
* add I18nAppConfig to IAppConfig & change appConfig key to i18n
* fix: fix locale will always in default when execute history.push in cookie blocked mode
* fix: fix modifyHistory params delivery error
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
* feat: no defaultLocale return from getDetectedLocaleFromPathname & adjust detect locale sequence in getDetectedLocale function (#5458 )
* feat: add setting for block cookie setting i18n locale
* add I18nAppConfig to IAppConfig & change appConfig key to i18n
* fix: fix locale will always in default when execute history.push in cookie blocked mode
* fix: fix modifyHistory params delivery error
* feat: no defaultLocale return from getDetectedLocaleFromPathname & adjust detect locale sequence in getDetectedLocale function
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
* fix: redirect incorrect i18n page (#5461 )
* fix: redirect incorrect i18n page
* fix: eslint warning
* fix: cookie path
Co-authored-by: srhb18 <srhb18@163.com>
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
2022-08-25 15:37:17 +08:00
luhc228
201393172e
fix: not get the real component when enable i18n ( #5428 )
...
* fix: not get the real component when enable i18n
* chore: changelog
2022-08-25 15:13:50 +08:00
luhc228
01e8390fb2
feat: createModel API ( #5443 )
...
* feat: createModel API
* chore: plugin-store version
2022-08-09 12:12:46 +08:00
luhc228
b25f39a1e5
fix: not call getInitialProps method ( #5398 )
2022-07-11 17:53:00 +08:00
luhc228
f7512ce022
fix: can not get the getStaticPaths method ( #5325 )
2022-06-08 10:18:00 +08:00
那吒
545ced142a
Release: 2.6.2 ( #5255 )
...
* Feat/memory router (#5247 )
* feat: support setLocale api (#5253 )
Co-authored-by: luhc228 <44047106+luhc228@users.noreply.github.com>
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-03-31 16:38:24 +08:00
ClarkXia
3546b8e7d4
feat: support env variables ( #5164 )
...
* feat: get env files
* feat: env variables
* chore: version
* fix: compatible with task without html plugin
* fix: stringified key
* test: add test case for env
* fix: stringified key
2022-02-17 16:05:20 +08:00
ClarkXia
8d22e587d6
feat: support rename main css chunk name ( #5159 )
...
* feat: vite plugin css chunk
* feat: support rename css chunk
* fix: example
* chore: types
2022-02-17 12:15:54 +08:00
luhc228
f320c3baa4
fix: i18n ( #5151 )
...
* fix: notFound component will not render
* fix: redirect route will throw error
* chore: version
2022-01-19 14:05:06 +08:00
luhc228
79c6f69217
chore: rename redirect to autoRedirect ( #5153 )
...
* chore: rename redirect to autoRedirect
* chore: changelog
2022-01-19 13:12:24 +08:00
ClarkXia
4f833cfe86
chore: version and changelog ( #5133 )
...
* chore: changelog
* fix: dts generation
* chore: update lock
* chore: version
2022-01-17 13:57:08 +08:00
Hengchang Lu
9e2e81a428
Fix: store not work in mpa(webpack mode) ( #5144 )
...
* fix: store not work in mpa
* feat: add mpa-webpack example
* chore: example name
* chore: update comment
* fix: use rootDir to replace process.cwd()
* chore: format
2022-01-17 10:56:13 +08:00
Hengchang Lu
597ea21f76
Fix: i18n not rediect in ssr ( #5140 )
...
* fix: i18n not rediect in ssr
* feat: update test cases
* chore: remove Location typs
* chore: log when in dev
2022-01-17 10:29:13 +08:00
Hengchang Lu
46f70bb8bc
feat: i18n ( #5096 )
...
* feat: init plugin-auth
* feat: init locale example
* feat: generate locale routes
* feat: reverse providers
* feat: support get locales
* feat: support get/set locale
* chore: todo
* chore: remove index.d.ts
* feat: support ssr
* feat: support ssg
* feat: webpack-dev-server redirect
* feat: support csr redirect
* fix: activeLocale is not correct
* feat: support localeRedirect and localeRoute
* feat: modify history
* feat: common function
* feat: middleware
* fix: render data
* chore: add default locale config
* chore: remove deps
* chore: plugin version
* fix: comment
* test: add formatRoutes test
* chore: deps
* fix: could not call getInitialProps in some cases
* chore: type
* chore: type
* chore: remove comment
* fix: comment problem
* feat: support basename
* fix: can't redirect when enable basename
* chore: remove log
* chore: update peerDependencies version
* fix: can't render in ssr
* chore: locale to i18n
* fix: comment
* fix: display language error in csr
2022-01-12 20:04:01 +08:00
ClarkXia
723a8b7b25
feat: SSR in mode vite ssr ( #5045 )
...
* feat: vite ssr
* chore: fix unexpected remove
* fix: ts type
* feat: ssr build in vite mode
* chore: optimize code
* fix: optimize code
* fix: ssr in dev
* chore: version and changelog
* feat: support redirect url
* fix: vite ssr
* chore: optimize code
* chore: optimize code
* chore: update lock file
* fix: noExternal with miniapp-history
* feat: support ssg
* feat: isServer
* chore: comment
* chore: rename plugin
* chore: comment
* fix: import env file
* chore: changelog
* chore: ts lint
* fix: env path
2022-01-11 10:36:40 +08:00
大果
95fba2b129
feat: pass page props to NoAuthFallback ( #5088 )
...
* feat: pass page props to NoAuthFallback
* chore: template -> runtime
* fix: optimize code
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-12-30 10:22:31 +08:00
大果
b3265836ad
chore: add test case for historyApiFallback.disableDotRule ( #5066 )
...
* chore: test case for disableDotRule
* chore: git conflict
* fix: test case
2021-12-29 17:24:19 +08:00
ClarkXia
f91fb66e63
fix: enhance alias for node_modules dependencies ( #5028 )
...
* fix: enhance alias for node_modules dependencies
* chore: remove console
2021-12-15 19:08:13 +08:00
ClarkXia
f2ea7f540e
fix: error redirection when import with alias ( #5042 )
...
* fix: error redirection when import with alias
* chore: version
2021-12-15 19:07:31 +08:00
大果
da06ecb674
feat: support props.pageConfig ( #5022 )
...
* chore: add props.pageConfig test case
* feat: support props.pageConfig
* chore: fix test case
* chore: rename function
2021-12-09 14:37:15 +08:00
ClarkXia
d369745d41
fix: pre bundle webpack-dev-server and webpack loaders ( #5019 )
...
* fix: pre bundle webpack-dev-server and webpack loaders
* chore: optimize code
* chore: bump version
* chore: bump version
* chore: version
2021-12-08 15:19:19 +08:00
ClarkXia
967e09f87a
fix: avoid error when disableRuntime ( #5002 )
2021-12-03 14:52:10 +08:00
大果
32a56a2ee5
refactor: optimize router ( #4814 )
...
* chore: add useful log for router
* fix: renderComponent -> app.renderComponent
* fix: renderComponent -> app.renderComponent
* feat: spa support renderComponent
* chore: add example
* chore: build-plugin-app-core remove npmlog
* feat: support disable request plugin
* feat: wrapper page in plugin-app-core(not yet plugin-router)
* chore: optimize examples
* chore: move wrapper page to plugin-react-app
* chore: optimize router log
* feat: register enableRouter in runtime
* fix: enableRouter typo error
* feat: add mpa to runtime buildConfig
* chore: runtime buildConfig.router -> enableRouter
* chore: optimize example
* chore: bump version and add changelog
* fix: ts type
* fix: example app.renderComponent
* fix: eslint and remove log
* test: add icestark-layout test case
* chore: try test case
* fix: addProvider not work
* chore: add store test case
* chore: try test case
* chore: try test case
* chore: try test case
* chore: add npm install before test
* chore: enable all test
* chore: fix test install
* feat: ssr search params (#4987 )
* feat: ssr search params
* feat: support renderComponent ssr
* chore: add comment
* feat: add enableRouter to context
* chore: add changelog
* fix: ssr error
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
Co-authored-by: 狒狒神 <fushen.jzw@alibaba-inc.com>
2021-12-02 10:44:03 +08:00
ClarkXia
d667d5c92c
fix: support transform proxy.pathRewrite ( #4920 )
2021-11-17 17:39:23 +08:00
ClarkXia
3ebb199f9f
feat: support nested rule in css ( #4876 )
2021-11-16 17:58:29 +08:00
Hengchang Lu
c46c6f35ca
Feat: bundle ice d.ts ( #4809 )
...
* feat: update example
* feat: support pre-bundle ice dts
* feat: rename to generate-dts
* feat: postinstall copy dts to ice temp dir
* fix: dts file not exists
* chore: rename script
* chore: add dts-generation example
2021-11-15 18:54:42 +08:00
ClarkXia
0feaddb8ef
Merge branch 'master' into release/2.2.0
2021-11-12 17:48:14 +08:00
luhc228
50948d0c9a
fix: regexp
2021-11-10 16:43:26 +08:00
Hengchang Lu
88e6d26d9a
fix: ssr not works in promissory routes ( #4874 )
...
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-11-09 11:04:04 +08:00
那吒
77df6df968
feat: 🎸 support jsx-plus in vite mode ( #4825 )
...
* feat: 🎸 support jsx-plus in vite mode
✅ Closes : #4768
2021-11-04 15:19:53 +08:00
ClarkXia
558c5fb8c3
Merge branch 'master' into release/2.1.1
2021-10-26 11:22:13 +08:00
Hengchang Lu
40ef97ff66
Fix: nested routes not render in vite ( #4787 )
...
* feat: fix: nested router not render in vite
* feat: optimize regexp
* chore: version and changelog
2021-10-26 11:10:51 +08:00
ClarkXia
e09ab56fd2
feat: plugin for ignore style import ( #4776 )
...
* feat: init plugin
* feat: plugin for ignore style import
* chore: remove console
2021-10-25 11:49:56 +08:00
Hengchang Lu
2161a08244
Fix: can run project normally when first use store ( #4708 )
...
* fix: not restart after init store
* feat: add cache id
* fix: ci error
* chore: add webpack cache type
* chore: remove onHooks
* chore: add onHook
* feat: update webpack cache version
* chore: lock
* chore: temp remove webpack cache
* chore: sync run jest
* chore: add ignore pattern
* chore: add more ignore test case
* chore: remove ignore pattern
* chore: remove ignore pattern
* chore: add basic-spa test case
* chore: add mpa test
* fix: comment
* chore: add log heap usage
* chore: remove expose-gc
* chore: ignore basic-store test
* chore: update webpack config cache version
* chore: update cache config
* chore: update cache id
* chore: ignore spa example
* chore: not use merge cache
* chore: remove cache
* feat: disable swc
* chore: remove store test case
* chore: disable cache
* chore: upgrade puppeteer version
* fix: yarn-lock
* chore: update cache version
* feat: add cache merge condition
* chore: remove unnecessary code
* chore: version and changelog
* chore: version and changelog
* chore: upgrade app-core version in icejs package
* feat: use hash format webpack cache id
* feat: add jsx-runtime option to webpack cache id
* chore: lint
* fix: jest test
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-10-20 14:55:16 +08:00
ClarkXia
5b9988d84d
feat: vite plugin of tsChecker ( #4740 )
...
* feat: ts checker
* feat: support ts checker
* chore: optimize code
* chore: add dependencies
* fix: optimize code
* fix: optimize code
2021-10-14 10:39:49 +08:00
ClarkXia
9a4ba117cc
Merge branch 'master' into release/2.x
2021-10-11 17:58:47 +08:00
狒狒神
b98e872bba
Fix: swc error with build mode ( #4728 )
...
* fix: minify error
* fix: example react-jsx
* Build @builder/swc binaries
* chore: add changelog
* Build @builder/swc binaries
* chore: update version
* Build @builder/swc binaries
Co-authored-by: SoloJiang <SoloJiang@users.noreply.github.com>
Co-authored-by: ClarkXia <ClarkXia@users.noreply.github.com>
2021-10-11 16:07:34 +08:00
Hengchang Lu
9b9f0cb50c
fix: Component.getInitialProps function isn't be executed ( #4682 )
...
* fix: component.getInitialProps function isn't be executed
* fix: can't get route.getInitialProps
2021-09-26 14:28:10 +08:00
ClarkXia
a7e4841fd6
fix: theme icon in vite mode ( #4683 )
2021-09-26 13:15:47 +08:00
ClarkXia
455654b236
feat: moment locales in vite mode ( #4685 )
...
* fix: moment locale
* feat: moment locales in vite mode
2021-09-26 13:14:40 +08:00
ClarkXia
e8e4864365
fix: set history value after initHistory ( #4694 )
2021-09-26 13:14:24 +08:00
狒狒神
1a35f09eac
feat: bundle swc ( #4645 )
...
* feat: support prebuild swc
* chore: ci
* chore: ci
* feat: add basic test case
* feat: add @builder/swc publish
* feat: add copy binary
* chore: ci
* chore: rename workflow
* chore: rename workflow name
* chore: rename workflow name
* Build fushen-swc binaries
* chore: replace @swc/core
* chore: change swc-plugin
* chore: ci
* chore: ci
* fix: publish version
* chore: bump version
* chore: typo
* chore: ci
* chore: add changelog
* chore: ci
* chore: revert version
* chore: ci
* Build @builder/swc binaries
Co-authored-by: SoloJiang <SoloJiang@users.noreply.github.com>
Co-authored-by: ClarkXia <ClarkXia@users.noreply.github.com>
2021-09-23 14:03:34 +08:00
ClarkXia
dbe6438e63
feat: lock axios version ( #4640 )
...
* feat: lock axios version
* chore: verison
2021-09-17 11:51:46 +08:00
Hengchang Lu
d5a051601f
feat: add immer usage example ( #4633 )
2021-09-16 11:37:13 +08:00
ClarkXia
c4cd96fb41
fix: remove runtime config of logger ( #4622 )
...
* fix: remove runtime config of logger
* fix: logger
* fix: log level
2021-09-15 17:17:38 +08:00
ClarkXia
9a3788f3c9
fix: update auth ( #4624 )
...
* fix: update auth
* fix: remove console
2021-09-15 17:16:44 +08:00
Hengchang Lu
6a183bf26a
chore: not generate server loadable stats file ( #4626 )
...
* chore: not generate server loadable stats file
* fix: remove node_modules in setup:skip scripts
2021-09-15 17:16:28 +08:00
ClarkXia
53b4e31664
fix: runtime file generate by icestark ( #4619 )
2021-09-13 14:44:05 +08:00
那吒
8338eb3eb1
feat: 🎸 support es module for ice.js ( #4603 )
...
* feat: 🎸 support es module for ice.js
* feat: 🎸 yarn lock
* test: 💍 fix conflict
* feat: 🎸 fix entries
* feat: 🎸 add html for icestark
* feat: 🎸 remove log
* feat: 🎸 judge by ext
* refactor: 💡 refact code
* refactor: 💡 upgrade examples and log
* feat: 🎸 update version
* chore: 🤖 yarn locak
* chore: 🤖 yarn locak
* feat: 🎸 entries types
* chore: 🤖 changelog
2021-09-10 16:47:15 +08:00
那吒
5cd6c97f97
feat: pwa ( #4490 )
...
* feat: 🎸 pwa init
* feat: 🎸 temp release
* feat: 🎸 add scope test
* fix: 🐛 url for swPath
* feat: 🎸 support dev and manifest
* feat: 🎸 fix code
* ci: 🎡 pass ci
* chore: 🤖 remove useless pkg and pass ci
* chore: 🤖 pass ci
* feat: 🎸 update
* refactor: 💡 remove console.log
* feat: 🎸 add html-wepback-plugin to peerDedencies
* feat: 🎸 compatible 2.x
* refactor: 💡 compatible 2.x
* refactor: 💡 compatible to pwa
* refactor: 💡 remove lint
* feat: 🎸 add removed yarn locak
* chore: 🤖 update yarn lock
* feat: 🎸 add to ice2.x
* feat: 🎸 add lock
* chore: 🤖 yarn.lock
* chore: 🤖 pass ci
* chore: 🤖 changelog
* feat: 🎸 log
* feat: 🎸 change other version
2021-09-10 12:02:54 +08:00
ClarkXia
336dfc3f91
fix: proxy in vite mode ( #4618 )
2021-09-10 11:58:46 +08:00
ClarkXia
24978dffe2
fix: config auth by static props of component ( #4614 )
...
* fix: config auth by static props of component
* fix: optimize code
2021-09-09 20:15:50 +08:00
ClarkXia
6b7f3eae31
fix: compatible with plugin-icestark ( #4597 )
...
* fix: compatible with plugin-icestark
2021-09-03 14:23:52 +08:00
ClarkXia
ba411439a4
feat: mock for vite ( #4595 )
2021-09-03 10:35:49 +08:00
ClarkXia
5e640854d5
feat: refactor config of minify ( #4578 )
...
* feat: refactor config of minify
* fix: minify in vite
* fix: typo
2021-08-30 14:43:02 +08:00
Rhuzerv
04eb146b1e
fix: ignore html in mpa ( #4582 )
2021-08-30 11:03:08 +08:00
Rhuzerv
f3f8d09e38
fix: unable import svg and more files in webpack mode ( #4576 )
2021-08-25 20:29:07 +08:00
ClarkXia
a6ca85493e
chore: bump verison of build-scripts ( #4575 )
2021-08-25 20:25:59 +08:00
Hengchang Lu
575f9b19ba
Feat: ssg ( #4542 )
2021-08-25 11:07:31 +08:00
Hengchang Lu
fda00a6b72
Fix: pages/index.jsx has error when enable store ( #4556 )
...
* feat: update example
* fix: index page store error
* chore: example
* chore: format
2021-08-19 10:47:34 +08:00
Rhuzerv
7cfeb54fa9
feat: vite MPA & performance ( #4538 )
...
* fix: remove friendly-type-imports
* fix: clear file that be injected react-fast-refresh in runtime
* feat: add historyApiFallback
* feat: refact plugins dir
* fix: improve spa plugin
* fix: remove unused code
* fix: remove unused options
* feat: add mpa setValue
* fix: refactor opdEntries api
* fix: can’t open url
* feat: remove generate html in dev
* fix: runApp path import fixed
* feat: vite:importPlugin support spa and mpa
* fix: historyApiFallback option
* fix: optimize code
* feat: add vite x mpa openPage
2021-08-16 11:01:17 +08:00
ClarkXia
2c90defa43
fix: config webpack runtime target ( #4540 )
2021-08-12 12:13:21 +08:00
Rhuzerv
10bd717d20
fix: polyfill file in hash and outputAssetsPath ( #4533 )
...
* fix: polyfill be control by hash
* fix: polyfill path in html and adapt outputAssetsPath
* fix: deps check for fast-glob
2021-08-10 11:28:54 +08:00
ClarkXia
664736a546
feat: vite plugin for import component style ( #4527 )
...
* feat: vite plugin for import component style
* chore: update dependencies
* chore: dependencies
* fix: add component style plugin
* fix: test case
* chore: lock file
2021-08-09 14:28:18 +08:00
Rhuzerv
47913a40da
feat: transform some ice config to vite config ( #4519 )
...
* feat: add hash outputAssetsPath minify
* feat: remove empty dir
* feat: add postcss option
* feat: add polyfill plugin and option
* feat: add ignoreHtmlTemplate
* feat: add vendor config
* feat: add vite analyzer
* fix: remove ice-stats
* fix: optimize code
* fix: optimize comment and condition
2021-08-06 15:31:43 +08:00
Hengchang Lu
948a883d64
refactor: replace route path in plugin-store ( #4501 )
...
* refactor: replace route path in plugin-store
* chore: remove babel plugin
* feat: support lazy load
* chore: example
* fix: ci
* fix: test
* fix: comment
* fix: comment
* fix: not include tsx and jsx
2021-08-04 16:40:09 +08:00
ClarkXia
8f523203e2
feat: support specify minifier by config minify ( #4523 )
2021-08-04 16:39:29 +08:00
狒狒神
401839d78a
feat: support pre compile by swc ( #4509 )
...
* feat: support pre compile by swc
* feat: parse mutiple source
2021-07-29 16:03:30 +08:00
狒狒神
9908f6fa30
refactor: rework logger plugin ( #4497 )
...
* feat: support dropLogLevel
* chore: change examples
* chore: optimize deps
* chore: remove useless code
* chore: optimize code
* chore: change default value
2021-07-29 15:48:22 +08:00
ClarkXia
d639c67863
feat: vite mode of icejs ( #4481 )
...
* feat: upgrade build-scripts
* chore: bump build-scripts version
* feat: add vite-service and example
* feat: property priority & build command
* fix: bump version
* feat: build dist html entry
* fix: build service
* fix: registry of setup
* fix: dependencies
* feat: add basic option tranformer (#4488 )
* feat: add basic option tranformer
* fix: change get webpack plugin option to get args
* fix: chain new plugin
* fix: devServer.watchOptions -> devServer.watchOptions.static.watch
* fix: clear logs
* chore: version
* fix: fs api
* fix: hooks
* chore: tag version
* 🎉 Feat: runtime and runApp (#4498 )
* fix: friendly-type-imports
* fix: inline require & ice develop deps optimize
* fix: runtime module load error
* fix: same React instance
* fix: vite build service
* fix: clear unused deps
* fix: revert add isKraken env in create-app-share
* fix: webpack dev sever ts error
* fix: friendlyTypeImports tranfrom other files (such as html and css)
* fix: change hook sequence
* fix: change extra config to vite config
* fix: ts and tsx file ext and add some comment
* fix: 'count' is already declared in the upper scope in example
* fix: runtime lazy import
* fix: global is not defined
* fix: avoid defined global in ssr
* fix: window is not defined
* fix: cannot access 'createStore' before initialization
* fix: optimize code
* fix: remove renderInServer async/await
* feat: add vite plugins for babel transform (#4500 )
* feat: add vite plugins for babel transform
* fix: resolve id
* chore: bump verison
* fix: vite plugins
* fix: support mpa store
* fix: remove log
Co-authored-by: Fuzzy Fade <1339184537@qq.com>
2021-07-28 17:15:48 +08:00
ClarkXia
ce66443f35
fix: import declartions and devServer ( #4489 )
2021-07-22 14:52:43 +08:00
狒狒神
3589342c47
refactor: mpa render ( #4468 )
...
* refactor: template
* refactor: runApp template
* feat: support lite runApp
* chore: optimize code
* feat: redirect runApp
* feat: support disable router plugin
* chore: lint
* chore: optimize code
* feat: add wrapperPageComponent
* chore: optimize code
* refactor: templates
* chore: optimize code
* chore: lint
* chore: lint
* chore: ssr
* chore: test
* feat: redirectImport support export default
* chore: add test case
* chore: optimize code
* chore: test case
* chore: test case
* chore: optimize code
* chore: add setRenderApp method
2021-07-21 00:24:48 +08:00
ClarkXia
38162eeefb
Merge branch 'master' into release/2.0.0
2021-07-19 19:35:09 +08:00
Rhuzerv
8badeab92b
feat: multi theme ( #4349 )
...
* feat: initial multi theme plugin and example
* feat: improve themes type tips
* fix: setAPI.tsx -> setAPI.ts
* feat: defined injectThemeCode and getThemeVars
* feat: setup injectThemes
* feat: add postcss plugin
* fix: adapt typescript 4.x -> 3.8
* feat: complie less/sass var to css-var
* fix: clear unused dependencies
* fix: plugin-store path.join type error
* fix: loader path error
* fix: plugin-theme build
* fix: multi-theme example start error
* fix: remove lodash-es
* fix: getEnableThemes return value error
* fix: wirte types file for themes type tips
* fix: themesPathList add path prefix
* fix: avoid use ts deprecated api
* fix: loss get theme variable data
* fix: clear css inline comments
* fix: fail to load runtime
* feat: optimize injectTheme process
* fix: inline comment is unknown word
* feat: empty style when theme is default
* fix: postCSS -> postcss
* fix: add lodash to dependencies list
* fix: unit test problem
* fix: clear unused var and type
* feat: add themeData runtime.value
* fix: dependency error
* chore: fix ci error
* feat: function analysis and change inject data logic
* feat: watch themes files change
* fix: modify error comments
* fix: clear postcss warning
* fix: optimize code
* fix: split utils.ts postcss node walkers ability
* fix: improve named and dir
* fix: assemble webpack config for themes inject
* chore: add comment and update README title
* feat: add initialTheme feat
* fix: optimizeChunkAssets api deprecated in webpack5
* fix: add condition for entry fileName
* fix: optimize webpack plugin
* fix: support @import in themes css files
* chore: clear outdate comment
* fix: get filename name not full
* feat: add watcher for theme files change
* fix: add theme option in build.json
* fix: getDefaultTheme in watcher parames count
* fix: optimize code and example
* fix: webpack plugin implements
* feat: adapte ice 2.0
* chore: add peerDependencies and author
* fix: theme project example
* fix: loader not sync
* fix: change postcss-import async
* fix: deps and use postcss-loader
* fix: _theme -> themeProperty
* feat: implement multi theme
* chore: add walkDeps function comment
* fix: var name conflict in same scope
* fix: type error of postcss
* feat: example add transition
* feat: add cache file
* chore: optimize code
* feat: support nest funtion complie
* fix: get css var sync
* fix: change replace variable ruler logic
* fix: file path blackList during func collection
2021-07-14 16:24:45 +08:00
ClarkXia
40a4d84f78
chore: tag next version and changelog ( #4447 )
...
* chore: tag next version and changelog
* chore: versions
* chore: version
* chore: fix version
* chore: remove deprecate package
* chore: remove useless dependencies
* chore: fix demo
* chore: version
* chore: bump version
* chore: add dependencies
2021-07-12 19:48:09 +08:00
Hengchang Lu
51af9c37d3
feat: upgrade @ice/store ( #4451 )
...
* refactor: plugin-store
* chore: version
* fix: not use PROJECT_TYPE
* chore: update example
* fix: ci
* chore: update example
* fix: ci
* chore: version and changelog
* chore: version
* fix: store dir
* feat: support reset page state
* chore: version
* fix: remove getPageModelPath
* fix: tempPath
2021-07-12 16:32:55 +08:00
ClarkXia
0ba91458af
chore: deprecate packages and api ( #4452 )
...
* chore: deprecate packages and api
* fix: upgrade copy-webpack-plugin
* chore: dependencies
* fix: remove deprecate api call
* fix: revert copy-webpack-plugin upgrade
* feat: upgrade copy-webpack-plugin
* fix: noErrorOnMissing for copy plugin
2021-07-12 14:46:03 +08:00
狒狒神
89f344aac3
feat: support swc ( #4178 )
...
* feat: support swc
* feat: support swc
* chore: add default value
* chore: add context for modularImportRuntime
* chore: resolve conflict
* refactor: rework swc
* feat: swc plugin
* chore: rename example name
* chore: optimize code
* chore: update lock file
* chore: update version
* chore: optimize code
* chore: optimize code
* chore: optimize code
* chore: ci
* chore: optimize code
* chore: remove useless code
2021-07-12 12:05:05 +08:00
Rhuzerv
9916a62e89
refactor: build-plugin-ice-auth remove @ice/store ( #4453 )
...
* chore: verison and changelog
* fix: some typo and type
* feat: remove icestore
* fix: add Props type with FC
* fix: version and setAuth api
* fix: withAuth and Wrapper
2021-07-09 19:00:41 +08:00
ClarkXia
2460492e3c
fix: upgrade dependencies pack ( #4442 )
2021-07-08 15:01:56 +08:00
ClarkXia
1ca81deeea
feat: module federation for development ( #4382 )
...
* feat: remote runtime
* feat: config webpack when active remote runtime
* fix: mf config
* feat: module federation for development
* chore: version check
* fix: ci
* fix: remote compile
* fix: babel error
* fix: remove console
* fix: update lock file
* fix: update lock file
* fix: optimize code
* fix: optimize code
* fix: optimize code
2021-07-07 21:23:52 +08:00
Rhuzerv
afb2178290
feat: improve router configuration ( #4364 )
...
* feat: add centre2Comp function
* fix: clear unused log
* fix: lazy load components
* fix: adapted loadable components
* fix: set loadable component property error
* fix: clear unused code
* feat: add route type
* fix: avoid named conflict
* fix: ssr getInitialProps executed in server
* chore: modify example router setting for CI
* chore: verison and changelog
* fix: clear unused comment
* fix: getComponentByPath return usefull value
* feat: add setComponentAttr function
* Revert "chore: verison and changelog"
This reverts commit be81708402
.
* chore: add changelog
2021-07-05 11:17:23 +08:00
ClarkXia
6a9ef0df47
feat: remove deprecated configs ( #4359 )
...
* feat: remove deprecated configs
* fix: relative path
2021-07-05 11:09:20 +08:00
ClarkXia
be7adf2456
feat: runtime structure refactor ( #4346 )
...
* feat: runtime structure refactor
* fix: unknown method
* fix: error import source
* chore: lock version
* chore: optimize code
2021-07-02 16:32:42 +08:00
大果
b818ddcfdc
feat: support axios cancel ( #4415 )
...
* feat: support axios.CancelToken when use request
* chore: remove request.cancel
2021-06-30 22:36:51 +08:00
大果
d1200bddb5
fix: make appConfig.app.rootId works when ssr ( #4407 )
...
* fix(eslint): auto typo
* fix(eslint): remove auto format
2021-06-29 14:29:50 +08:00
ClarkXia
a6667c7d5b
fix: postcss version
2021-06-29 11:50:37 +08:00
ClarkXia
8f0b4c9a09
Merge branch 'master' into release/2.0.0
2021-05-24 15:24:57 +08:00
ClarkXia
55f8ee029a
feat: upgrade packages for webpack 5 ( #4245 )
...
* feat: support compile dependencies
* chore: revert modify
* fix: dependency check
* fix: plugin resolver
* fix: remove build task to avoid oom
* chore: remove code
* chore: update yarn.lock
* chore: bump version
* fix: teser plugin
* test: user config
* fix: esbuild
* chore: bump deps version
* feat: support a switch between webpack versions
* fix: test case
* fix: test case
* fix: update dependencies
* fix: test case of css-assets
* chore: remove dev test
* fix: support disable fs cache
* fix: built-in webpack 5
* fix: update @builder/pack
* fix: remove duplicate babel plugin
* fix: update builder pack
* fix: postcss options
* fix: css-loader options
* fix: node excute version
* chore: ignore case change
* fix: example commands
* fix: update webpack config
* feat: update dependency version
* fix: skip version check
2021-05-24 11:55:33 +08:00
ClarkXia
694227647b
feat: devServer rewrites rule for mpa development ( #4314 )
...
* feat: devServer rewrites rule for mpa development
* docs: update mpa docs
2021-05-19 10:53:23 +08:00
Hengchang Lu
7862ef52b9
Fix: not generate server bundle ( #4213 )
2021-04-15 11:18:14 +08:00
Hengchang Lu
7f748fb3e9
Feat: support page store state reset ( #4167 )
...
* feat: support page store state reset
* chore: update example name
* chore: add example case
* feat: add resetPageInitialStates param
* fix: test
* fix: store test
* chore: example
* fix: restPageState
* fix: name
* fix: comment
* fix: deps
* chore: changelog
* chore: changelog
* chore: store.ts change changelog
2021-04-08 12:08:44 +08:00
Hengchang Lu
05a34eb948
fix: api types ( #4198 )
...
* fix: history and withRouter type
* fix: type
* fix: history type
2021-04-07 10:57:15 +08:00
许文涛
fdf7b115fb
refactor: remove plugin-rml ( #4153 )
2021-03-16 10:53:14 +08:00
ClarkXia
347c3bd396
fix: custom config of terserOptions ( #4163 )
...
* fix: custom config of terserOptions
* fix: config options
2021-03-16 10:52:21 +08:00
ClarkXia
e745df823e
feat: support mock.exclude ( #4135 )
...
* feat: support mock.exclude
* chore: docs
* fix: mock files
2021-03-10 10:59:07 +08:00
ClarkXia
9ce42ae63b
feat: support esbuild ( #4117 )
...
* feat: support esbuild
* fix: test
* fix: use esbuild for minify
* docs: add config docs
2021-03-04 15:00:54 +08:00
ClarkXia
be23e0ea5b
fix: html template parameters ( #4122 )
...
* fix: html template parameters
* chore: formate
2021-03-04 12:20:54 +08:00
ClarkXia
fcff73338c
fix: compatible with prependData ( #4103 )
2021-02-24 15:50:49 +08:00
Hengchang Lu
90707f737c
use `<Head>` replace `<Helmet>` ( #4069 )
2021-02-23 14:10:03 +08:00
Hengchang Lu
0d156d2e98
Hotfix: store provider in ssr lazy ( #4064 )
2021-01-28 14:37:16 +08:00
fushen
4317e0d893
chore: revert getInitialData
2021-01-28 13:57:29 +08:00
狒狒神
08dba77263
feat: enhance SPA ( #4048 )
...
* fix: spa title toggle
* feat: support getInitialData
* feat: support server import component
* chore: remove interopRequire method
* chore: optimize code
* chore: update dep
* fix: dynamic import module type
* fix: test case
* chore: optimize code
2021-01-26 14:51:12 +08:00
ClarkXia
0e8275debf
feat: implementation of the keep-alive function for icejs ( #4035 )
...
* feat: build-plugin-keep-alive
* fix: remove log
* fix: add member export
* chore: remove comment
* fix: add test case
* chore: package name
* docs: build-plugin-keep-alive
2021-01-25 20:05:04 +08:00
Hengchang Lu
76414b288f
Feat: support lazy load component in ssr ( #4041 )
...
* feat: lazy load route in ssr
* feat: add example
* fix: nameChunks not found
* chore: remove copmment
* fix: lazy import fail
* feat: not inject script to html in ssr
* fix: comment
* fix: comment
* chore: remove async await
* fix: generate file to disk
* chore: remove @loadable/component externals
* chore: remove await
* fix: csr render
* feat: support fallback
* fix: conflict
* fix: HtmlWebpackPlugin inject
* fix: module param name
2021-01-25 18:16:04 +08:00
ClarkXia
b9afe83e2a
chore: bump dependencies version ( #4034 )
...
* chore: update typescript version
* chore: bump version
* fix: remove css-hot-loader
* fix: eslint
* fix: mini-css-extract-plugin params
* fix: example lint
* fix: example lint
2021-01-25 10:18:15 +08:00
Hengchang Lu
b1ed0ed961
fix: config of webpackPlugins ( #4029 )
...
* fix: use webpack inner plugins throw error
* fix: param name
* chore: version
* chore: add example
* chore: version
2021-01-21 14:44:46 +08:00
ClarkXia
8c75c3d0cf
hotfix: analyze js or ts mock file only ( #4026 )
...
* fix: analyze js or ts file only
* chore: opitimize code
2021-01-18 14:14:50 +08:00
ClarkXia
9a37aa1e3e
chore: ts type
2021-01-14 10:17:07 +08:00
ClarkXia
9c7a26375d
Refactor: mock service ( #4015 )
...
* fix: set cors before all served files
* feat: support ts in mock file
* feat: babel-preset-ice
* fix: remove useless code
* fix: trace rules
2021-01-14 10:07:06 +08:00
Hengchang Lu
fda2db07af
test: add mpa example test ( #4014 )
...
* test: add mpa example test
* fix: ci
* fix: comment
2021-01-13 21:13:14 +08:00
ClarkXia
8f90e07b36
fix: plugin-config and types ( #3997 )
2021-01-05 16:48:26 +08:00
ClarkXia
0837d131da
feat: support modular import of runtime ( #3982 )
...
* feat: support modular import of runtime
* fix: check config module
* fix: consider with rax-app
2021-01-05 11:26:37 +08:00
ClarkXia
2d49acf880
feat: serve component without react-router ( #3977 )
...
* feat: serve component without react-router
* test: add test case
* fix: add dependent
* feat: support renderComponent
* fix: add default value of initHistory
* chore: add test case for mpa
2021-01-05 11:03:17 +08:00
Hengchang Lu
cb8dd70f0f
chore: add compiler options to examples ( #3963 )
2021-01-04 11:10:35 +08:00
ClarkXia
b284d3065b
chore: version ( #3949 )
...
* chore: version
* chore: version
* chore: update yarn.lock
* chore: add test config
* chore: version
* chore: version
2020-12-23 10:28:49 +08:00
ClarkXia
c80e95793a
fix: rest options of postcss-loader ( #3950 )
...
* fix: rest options of postcss-loader
* chore: default vaule
2020-12-22 17:59:38 +08:00
Hengchang Lu
8fae61455c
chore: lint ( #3948 )
2020-12-22 16:25:09 +08:00
Hengchang Lu
77a6ca6e36
Feat: support dynamic tdk ( #3937 )
2020-12-22 15:48:04 +08:00
ClarkXia
24a48eff02
fix: types of icestark plugin ( #3904 )
...
* fix: icestark types
* fix: icestark types
* fix: lock file
2020-12-22 14:56:03 +08:00
ClarkXia
b8f6f63184
fix: compatible with functional postcss options ( #3946 )
...
* fix: compatible with functional postcss options
* fix: compatible with config ctx
2020-12-22 14:46:51 +08:00
ClarkXia
a7c73b266c
feat: workflow of ci test ( #3934 )
...
* feat: workflow of ci test
* fix: force exit when jest test finished
2020-12-22 10:43:23 +08:00
ClarkXia
9f4b3a9eb8
refactor: support generator api for plugins ( #3899 )
2020-12-14 10:48:47 +08:00
ClarkXia
98fbd6581d
Merge branch 'master' into release-next
2020-12-02 18:23:24 +08:00
ClarkXia
9e0a39d764
hotfix: runtime APP_MODE ( #3882 )
...
* fix: runtime APP_MODE
* chore: version
2020-12-01 20:34:10 +08:00
Hengchang Lu
2da1673775
feat: support redirect in ssr ( #3869 )
...
* feat: support redirect in ssr
* fix: comment
* fix: comment
2020-12-01 15:57:13 +08:00
ClarkXia
5d31f7215e
Release ( #3811 )
...
* feat: support uniqueName of plugin-icestark (#3804 )
* feat: support uniqueName of plugin-icestark
* chore: version
* fix: update userconfig
* fix: ci error
* chore: optimize code
* fix: update userconfig (#3829 )
* fix: update userconfig
* fix: ci error
* chore: optimize code
* fix: component name with dash code in store config (#3824 )
* fix: returns html with UNICODE when Chinese words are passed in ssr (#3819 )
* fix: ssr html decode error
* fix: ssr html decode error
* fix: cheerio decodeEntities config
* fix: package version
* fix: typo mpa (#3826 )
* chore: formate yml
* fix: compatible with undefined options (#3828 )
* fix: compatible with undefined options
* chore: version
* feat: inner plugin ice auth (#3805 )
* feat: inner build-plugin-ice-auth
* feat: compatible with adding plugin
* fix: comment
* refactor: mpa config (#3825 )
* refactor: remove inline loader of entry
* fix: format path in win
* fix: mpa entries
* fix: mpa config
* fix: default src dir when use mpa
* fix: compatible with files do not export component
* feat: support wrappers of Layout component (#3822 )
* feat: support wrappers of Layout
* fix: wrapper router
* chore: remove useless code
* refactor: motify userconfig
* chore: revert minify file
* chore: optimize code
* feat: support off eslint
* feat: support framework custom cli options (#3838 )
* feat: support framework custom cli options
* chore: rename config
* feat: update review
* fix: compatible with build-mpa-config
* fix: default config output dir (#3847 )
* fix: same instance of task config (#3848 )
* feat: ssr fallback (#3837 )
* feat: support ssr fallback
* feat: support csr get ctx
* chore: getInitialContext func
* fix: location undefined
* chore: remove package.json
* chore: remove useless code
* fix: format
* fix: state
* fix: comment
* fix: lint warning
* fix: lint warning
* fix: ci
* docs: update notice of wrappers (#3849 )
* chore: version (#3834 )
* chore: version
* chore: plugin-mpa version
* chore: versions
* chore: plugin-store version
* chore: version
* chore: version
Co-authored-by: fushen <fushen.jzw@alibaba-inc.com>
Co-authored-by: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Co-authored-by: William <wiolem@hotmail.com>
Co-authored-by: yangfan <18767120422@163.com>
2020-11-23 14:53:22 +08:00
fushen
72ec1c1a32
chore: remove rax packages
2020-11-17 15:15:00 +08:00
狒狒神
1aa0fe5d94
chore: remove rax-compile-config ( #3806 )
...
* chore: remove rax-compile-config
* chore: use rax-platform-loader instead of rax-compile-config
* chore: remove useless code
2020-11-12 11:18:12 +08:00
狒狒神
e3dab41b14
fix: miniapp json loader params lose ( #3794 )
...
* fix: miniapp json loader params lose
* chore: revert useless code
2020-11-10 15:28:32 +08:00
fushen
ff8422dc7a
chore: rename package name
2020-11-09 11:07:46 +08:00
狒狒神
d11ec74c50
refactor: polyfill load ( #3777 )
...
* refactor: polyfill load
* refactor: rename build-webpack-config
* chore: remove app-base plugin
* chore: optimize code
* feat: support icejs polyfill
* docs: add polyfill docs
* chore: rename user config dir name
* fix: unionBy method when merge config
* chore: lint
* chore: optimize code
2020-11-09 10:50:44 +08:00
fushen
78871d2c91
feat: support build-plugin-rax-app
2020-11-03 22:03:58 +08:00
fushen
c6f8be090e
Merge branch 'master' into release-next-rax
2020-10-29 16:22:56 +08:00
狒狒神
125eaf9be2
Merge pull request #3714 from alibaba/chore/rename-miniapp-event-name
...
chore: change page lifecycle
2020-10-29 11:47:45 +08:00
狒狒神
9c23841058
feat(rax-app): miniapp compile mode ( #3730 )
2020-10-29 09:56:01 +08:00
chenbin92
64ad1143b1
fix: appMode is undefined ( #3709 )
2020-10-27 15:03:16 +08:00
fushen
92cee0aedc
chore: change page lifecycle
2020-10-26 20:38:51 +08:00
思忠
a1570bac6a
Merge branch 'master' into release-next
2020-10-21 11:49:49 +08:00
chenbin92
9ba0ae4571
docs: replace createApp with runApp ( #3643 )
2020-10-21 11:09:25 +08:00
Hengchang Lu
dc7747d2cf
Merge pull request #3659 from alibaba/feat/plugin-auth
...
feat: support function component
2020-10-21 10:33:35 +08:00
Hengchang Lu
5a5a74b0a9
Merge pull request #3677 from alibaba/feat/support-getInitialData-and-setInitialData
...
Feat/support get initial data and set initial data
2020-10-21 10:25:26 +08:00
思忠
36de48f5c1
chore: update example
2020-10-21 10:19:53 +08:00
狒狒神
e805cb1314
feat: support kraken mpa( #3663 )
2020-10-20 21:18:55 +08:00
思忠
94328c9c9c
feat: support getInitialData and setInitialData API
2020-10-20 16:16:23 +08:00
思忠
10fa9563ac
feat: support function component
2020-10-15 11:03:26 +08:00
狒狒神
e10b55b989
chore: bump version ( #3648 )
2020-10-13 16:57:45 +08:00
Hengchang Lu
f2e8baff56
fix: rax store of null ( #3641 )
2020-10-13 16:14:20 +08:00
狒狒神
e1aadd4528
chore: bump version ( #3622 )
2020-10-12 20:56:32 +08:00
chenbin92
c3b1ad8e72
docs: update store docs ( #3636 )
...
* docs: update store docs
* docs: add tip
* docs: optimize
* docs: add types desc
* docs: export types api
* docs: rename types api
* chore: update store example
2020-10-12 17:38:03 +08:00
chenbin92
d62b9bf729
fix: compatible with empty object ( #3627 )
2020-10-10 18:28:41 +08:00
狒狒神
3b8665dd33
Merge pull request #3610 from alibaba/export-ErrorBoundary-component
...
feat: export ErrorBoundary Component
2020-09-29 16:17:23 +08:00
狒狒神
226558080c
fix(rax-app): ssr public url ( #3609 )
2020-09-29 16:16:57 +08:00
思忠
d9147d42c7
feat: export ErrorBoundary Component
2020-09-29 16:11:34 +08:00
狒狒神
a7e7875a3d
fix(rax-app): copy webpack plugin version ( #3606 )
2020-09-29 14:20:28 +08:00
狒狒神
41951417a6
feat(rax-app): support public dir ( #3601 )
...
* refactor: rax app project
* refactor: rax app project
* fix: rax app deps (#3573 )
* chore: lint
* chore: lint
* chore: rename mode name
* feat(rax-app): support build weex app (#3578 )
* chore: rename mode name
* feat: support weex
* feat: support weex
* chore: optimize code
* chore: remove useless code
* chore: optimize code
* chore: optimize code
* feat(rax-app): support build miniapp (#3593 )
* feat: support weex
* feat: support weex
* chore: optimize code
* chore: remove useless code
* feat: support build kraken app
* chore: optimize code
* chore: optimize code
* chore: optimize progress bar
* chore: optimizi web dep
* feat: support miniapp
* feat: support miniapp
* chore: update dep
* refactor: output file
* fix: assets output path
* fix: add dep
* chore: remove DS_Store files
* feat: support public dir
* feat: add registerUserConfig
Co-authored-by: chenbin92 <chenbinbin.cb@alibaba-inc.com>
2020-09-28 22:04:14 +08:00
chenbin92
e0b150c925
feat: refactor store ( #3555 )
...
* chore: nested page with store example
* chore: add index.html
* feat: support nested layout
* chore: update nested-store example
* chore: remove jest config
* docs: update store guide
* Feat: support create app store (#3590 )
* chore: typo
Co-authored-by: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Co-authored-by: luhc228 <luhengchang228@gmail.com>
2020-09-28 21:49:59 +08:00
狒狒神
907546003e
feat: the next rax app framework
2020-09-28 20:54:38 +08:00
chenbin92
d2c5df448b
feat: support set html in mpa mode ( #3566 )
...
* feat: support set html in mpa mode
* chore: update mpa example
* chore: code optimize
2020-09-28 12:28:48 +08:00
Hengchang Lu
d1be342e78
hotifx: store is undefined in class component ( #3579 )
2020-09-25 15:53:44 +08:00
fushen
48ebf88ed6
chore: improve miniapp docs
2020-09-14 11:07:57 +08:00
fushen
021017ba37
chore: add deprecated tip
2020-09-14 10:58:19 +08:00
fushen
91b417306d
chore: resolve conflict
2020-09-11 14:12:19 +08:00
fushen
166d2afa3a
refactor: getSearchParams design
2020-09-10 19:56:56 +08:00
chenbin92
2e6be4951e
feat: webpack dev mock ( #3516 )
...
* feat: webpack dev mock
* chore: optimize code
2020-09-10 16:06:33 +08:00
狒狒神
9e3d73df41
chore(miniapp): refactor miniapp project with miniapp-runtime-config ( #3469 )
2020-09-02 16:14:41 +08:00
fushen
42e3d76f35
fix: add public dir
2020-08-21 21:16:50 +08:00
狒狒神
821af53150
feat: support store ( #3442 )
2020-08-21 17:56:26 +08:00
chenbin92
8bbf0bc926
feat: icejs web app ( #3454 )
2020-08-20 14:34:59 +08:00
chenbin92
313423feb9
fix: load module to run before createApp ready ( #3447 )
2020-08-18 09:28:30 +08:00
f00bar
fba2e77482
fix: todos miniapp getUserInfo ( #3421 )
2020-08-13 10:48:54 +08:00
思忠
0f5fa9b232
fix: export history instance with icestark
2020-08-10 21:40:59 +08:00
chenbin92
ae042f72ff
chore: publish raxjs ( #3401 )
2020-08-07 14:28:21 +08:00
chenbin92
974e0a0152
feat: support use react write miniapp ( #3393 ) ( #3344 )
2020-08-06 17:48:19 +08:00
f00bar
105a496f68
chroe: add todos example for miniapp ( #3396 )
2020-08-06 00:22:47 +08:00
f00bar
df9fa58182
fix: function as parameter in useRequest ( #3389 )
2020-08-04 22:59:10 +08:00
f00bar
82ef26dd4f
fix: escape the beginning $ in jest moduleNameMapper ( #3367 )
2020-07-29 23:44:10 +08:00
chenbin92
7cdd928119
fix: compatible model is empty ( #3325 )
2020-07-09 10:57:39 +08:00
chenbin92
4087a5a5b4
feat: support ts type chcker on a separate process ( #3314 )
...
* feat: support ts type chcker on a separate process
* feat: add tsChecker options
* docs: update build docs
* fix: rename typings.d.ts
2020-07-02 11:46:58 +08:00
chenbin92
f4c5bd3708
fix: auth error with lazy ( #3307 )
2020-06-30 10:32:45 +08:00
chenbin92
629fc79fef
feat: support --mpa-entry ( #3299 )
...
* feat: support mpa-entry
* fix: detect mpa
* chore: add docs and example
2020-06-30 10:32:44 +08:00
Hengchang Lu
c84011a98a
Feat: support prerender ( #3252 )
...
* feat: init plugin-prerender
* feat: support minify and renderer
* feat: add example
* feat: support mpa prerender
* fix: fix entryName
* docs: add prerender docs
* docs: add README.md
* docs: update docs
* fix: fix by the comment
* fix: fix ci problem
* fix: fix ci problem
* fix: fix by the comment
* docs: update docs
* docs: update docs
* docs: update docs
* v1.6.0-alpha.0
* docs: add nginx deploy docs
* docs: optimize
* docs: update prerender docs
Co-authored-by: 思忠 <chenbinbin.cb@alibaba-inc.com>
2020-06-22 14:48:13 +08:00
思忠
a9c4836d3c
fix: remove unnecessary file
2020-06-11 11:20:19 +08:00
思忠
19323d94bf
Merge branch 'master' into release-next
2020-06-08 12:31:11 +08:00
chenbin92
a2d991b001
Feat/enhance useRequest ( #3243 )
...
* feat: integration ahooks useRequest
* refactor: useRequest types
* chore: fix lint
* refactor: rename template
* docs: add useRequest api
* feat: useRequest test (#3247 )
* feat: setup test environment
* feat: add request test
* feat: add useRequest test
* fix: remove codecov.yml
* fix: exclude test in tsconfig
* fix: ci scripts
* chore: optimize code
* refactor: workflows
* fix: add react-test-renderer deps
* feat: useRequest test case
* feat: codecov ci
* chore: optimize code
* chore: update yarn lock
2020-06-08 09:49:38 +08:00
chenbin92
5e85122f0e
fix: ignore dot file ( #3248 )
...
* fix: ignore dot file
* fix: match rule
2020-06-04 10:26:42 +08:00
chenbin92
fa8637f414
feat: support disable runtime ( #3253 )
...
* feat: support disable runtime
* docs: add disableRuntime api
* fix: optimize code
2020-06-02 19:38:59 +08:00
chenbin92
78dd76a2cf
fix: icestark Suspense fallback ( #3256 )
2020-06-02 19:38:31 +08:00
思忠
dc261f2dd1
fix: add template dir and optimize docs
2020-06-02 11:09:50 +08:00
chenbin92
a6816ec50b
feat: support React Refresh ( #3201 )
2020-05-25 11:21:42 +08:00
chenbin92
584a0521e8
fix: lint
2020-05-25 08:57:18 +08:00