Commit Graph

35 Commits

Author SHA1 Message Date
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
luhc228 e88c291ad1 fix: useAuth error (#661)
* chore: example

* chore: with-auth example

* docs: update auth

* test: add with-auth test

* chore: format

* fix: lock
2022-11-15 10:33:11 +08:00
luhc228 41aee63512 feat: add splitChunks to userConfig (#454)
* feat: add splitChunks to userConfig

* docs: splitChunks

* test: splitChunks test case

* fix: splitChunk test case
2022-11-15 10:27:46 +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
水澜 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 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 16b88d947c chore: bump dependencies version 2022-11-14 19:25:24 +08:00
ZeroLing 723e0718e0 fix: test cases 2022-11-14 19:21:29 +08:00
ZeroLing b727c4ded6 chore: move to @ice/runtime/jsx-runtime 2022-11-14 19:20:46 +08:00
ZeroLing 2d15e80f47 refactor: support unit for project 2022-11-14 19:17:53 +08:00
ZeroLing 68fdcf8bc0 feat: impl onAppear and onDisappear 2022-11-14 19:17:53 +08:00
ZeroLing 8aa8764d06 feat: add dependency 2022-11-14 19:17:53 +08:00
ClarkXia 95cf70d639 chore: add plugin rax compat 2022-11-14 19:17:27 +08:00
luhc228 19b00c1276 feat: mock (#161)
* feat: support get mock data

* feat: middleware

* feat: support watch mock dir file change

* chore: lock

* fix: mock

* chore: lint

* feat: put mock middleware to first

* feat: support mock exclude

* fix: app.addProvider not be added (#190)

* feat: app.addProvider not be executed

* fix: still excute when error

* chore: skip test
2022-11-14 19:17:25 +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
大果 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
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 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
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
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
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
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
ClarkXia 282543d2df feat: basic runtime 2022-11-14 17:42:51 +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