Commit Graph

141 Commits

Author SHA1 Message Date
Homyee King 97cb204697
feat: split server chunk (#7040)
* feat: last step

* fix: css

* feat: v1

* feat: skip css

* chore: save

* fix: external

* fix: ci

* chore: rm unused diff

* chore: lock

* chore: changeset

* fix: er

* fix: ci

* feat: prepack esbuild-loader

* feat: tsconfig plugin

* chore: lock

* chore: save

* chore: save

* fix: err

* chore: revert format

* chore: revert format

* fix: require is not defined

* fix: banner maybe undefiend

* chore: save

* chore: save

* fix: external node builtin

* chore: save

* fix: target

* chore: save

* fix: chunk and exports

* feat: remove sourcemap comment

* fix: sourcemap path

* fix: assign __quickMode

* feat: provider plugin

* fix: target

* fix: no export

* fix: manifest assets

* feat: add minify

* feat: control minify

* fix: hack replace

* Revert "feat: skip css"

This reverts commit 0557e786ea65530570c37f4b262c09fcbe6e423e.

* feat: disable sourcemap

* fix: jsx importSource

* chore: version

* chore: name

* chore: sae

* chore: save

* chore: sa

* chore: split

* chore: save

* feat: format alias

* fix: alias

* feat: allow userConfig

* chore: version

* fix: err

* chore: save

* feat: support server config

* chore: save

* feat: call in vendor

* fix: runtime and writable

* chore: sync code

* feat: support split by routes

* feat: update Code

* feat: ice/bundles

* fix: type

* fix: err

* chore: rm unused file

* chore: rm unused

* feat: disable chunkFormat

* chore: change back

* feat: change set

* feat: bundle all need plugin and loaders

* chore: changeset

* feat: suppor transformInclude a array

* feat: handle svg and custom esbuild-loader

* feat: support handle assets

* feat: use esbuildMinify

* feat: minify css

* chore: changeset

* chore: changeset

* chore: lock

* chore: merge code

* chore: rm tsconfigpahtsplugin

* feat: init appconfig specify bundler

* feat: reuse css and assets

* chore: rm

* feat: use webpackConfig

* chore: save

* chore: rm unused

* chore: unused

* chore: rm console

* fix: err

* fix: transform inlcude

* chore: updata lock

* chore: change back

* chore: "es-module-lexer": "1.6.0",

* chore: changeset

* chore: change esbuildResult to bundleResult

* fix: use compiled webpack

* fix: provide plugin not works

* chore: changeset

* chore: rm console

* fix: specify target

* fix: differentiate webpackTarget
2025-03-11 18:02:22 +08:00
Bradley Xu 710b2e48a0
feat: improve miniapp (#6985) 2024-11-11 14:41:31 +08:00
ClarkXia b0eb09d509
fix: add browsers list config to cache key (#6976) 2024-10-08 14:32:21 +08:00
ClarkXia a805fa9562
fix: minify config of swc (#6871) 2024-05-06 19:25:42 +08:00
ClarkXia 21257778ea
Fix: improve dev sourcemap (#6818)
* fix: improve dev sourcemap

* chore: changelog
2024-03-06 13:25:52 +08:00
ClarkXia 7d193fe96b
fix: several bug when bump pack dependencies (#6689)
* fix: serveral bug when bump dependencies

* fix: compile error

* chore: bump version
2023-12-12 14:25:32 +08:00
ClarkXia 52eb7a4077
fix: do not minify assets in public by default (#6631) 2023-11-08 10:27:50 +08:00
ClarkXia ca14f6d367
fix: compatible with plugin API configureWebpack in speedup mode (#6564) 2023-10-12 10:17:44 +08:00
水澜 78f850fa67
feat: hash only css modules (#6289)
* feat: hash only css modules

* fix: type

* docs: css modules hash only

* chore: add changeset

* refactor: support localIdentName

* chore: add todo
2023-09-20 15:17:28 +08:00
ClarkXia f5d155b5f0
feat: support register different bundler (#6440)
* feat: refactor bundler

* fix: refactor getwebpack config

* fix: add start and build

* fix: optimize code

* fix: remove useless file

* chore: remove useless file

* chore: optimize code

* fix: bump build-scripts version

* fix: bump build-scripts version

* chore: refactor file

* feat: refactor shared config

* feat: support rspack config

* fix: reset example

* chore: optimize code

* fix: update css rule

* chore: version

* chore: update lock

* fix: get css modules ident

* feat: support rspack build

* fix: css modules ident rule

* chore: add changelog

* chore: test case

* chore: test case

* chore: optimize code

* fix: compilation.chunks cause performace issue

* fix: hmr

* chore: lint

* feat: support dataLoader in rspack mode

* chore: format

* fix: add dependencies to bundles

* chore: reduce dependencies

* refactor: optimize code
2023-08-21 17:17:17 +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 92ec144fd0
fix: do not compile runtime library of tslib (#6377)
* fix: do not compile runtime library of tslib

* chore: changelog
2023-07-19 17:14:49 +08:00
ClarkXia cf8a78e379
feat: support code splitting strategy of page-vendors (#6386)
* feat: support code splitting strategy of page-vendors

* chore: fix type

* fix: test case
2023-07-17 10:44:15 +08:00
ClarkXia 1171475d42
fix: ignore hydration error in dev server overly (#6326)
* fix: ignore hydration error in dev server overly

* fix: throw error
2023-06-14 19:02:47 +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
ClarkXia ed4ed7ee7a
hotfix: auto polyfill for abortcontroller (#6301)
* fix: auto polyfill for abortcontroller

* fix: polyfill

* feat: changelog

* fix: lint

* fix: optimize code

* fix: signal
2023-06-07 11:26:01 +08:00
ClarkXia b21ab5cdac
fix: compile @remix-run/router when minify is swc (#6291)
* fix: compile @remix-run/router when minify is swc

* chore: comment
2023-06-01 16:06:17 +08:00
ClarkXia a4b851449a
fix: compatible with code has import.meta (#6264)
* fix: changelog

* fix: test case
2023-05-24 13:51:26 +08:00
ClarkXia a6633a6a7c
feat: support api of addEntryImportAhead (#6256)
* feat: support api of addEntryImportAhead

* fix: ts type
2023-05-18 17:45:19 +08:00
ClarkXia 55cacbfa8b
fix: make a copy of keep exports list (#6243) 2023-05-16 17:35:18 +08:00
ClarkXia 07687cc157 Merge branch 'master' into release/next 2023-05-09 15:34:11 +08:00
luhc228 0d54977961
fix: read the same task target (#6221)
* fix: read the same target

* chore: changeset
2023-05-09 11:54:29 +08:00
ClarkXia b226e3566f
fix: bump @swc/helpers to 0.5.1 (#6213)
* fix: bump @swc/helpers to 0.5.1

* fix: cjs path of @swc/helpers

* fix: test case
2023-05-08 19:44:59 +08:00
luhc228 6e9c822af8
fix: define config (#6198)
* chore: remove useless define variables

* chore: remove useless define variables

* fix: server define config

* chore: changeset

* chore: update comment

* fix: define variables in onDemand server

* docs: update define config

* fix: test

* chore: update test case

* fix: process.env variable
2023-05-08 12:04:07 +08:00
luhc228 28de278f7f
feat: support match target entry to bundle (#6200)
* feat: support match target entry to bundle

* chore: changeset
2023-04-27 12:00:59 +08:00
ClarkXia 5dd3c86ed7
Refactor: use swc plugin to remove code (#6144)
* refactor: use swc plugin to remove code

* chore: update version
2023-04-18 17:01:37 +08:00
水澜 4e1d906560
fix: resue route paths (#6074)
* refactor: resue route paths

* chore: add changeset

* fix: type

* refactor: don't pass data cache

* fix: lint

* fix: should include layout file
2023-03-29 19:34:06 -07:00
luhc228 97f8a80142
feat: disable compress config in dev server for streaming render (#6116)
* feat: disable compress config in dev-server

* chore: changeset
2023-03-28 17:02:50 +08:00
ClarkXia ee4141d5c3
chore: update dependencies (#6026)
* chore: update dependencies

* chore: remove empty line

* chore: update swc version

* Revert "chore: update swc version"

This reverts commit 47c62bbe56.

* fix: update lock

* chore: update lock

* fix: bump @swc/core and swc plugins version

* chore: update changelog

* chore: update changelog

* fix: update lock
2023-03-21 17:00:31 +08:00
ClarkXia 4a73cb2ad2
fix: redirect named import (#6061)
* fix: redirect named import

* fix: test case

* fix: redirect request

* test: redirect request

* chore: add changeset

* feat: support get exports by target

* fix: type

---------

Co-authored-by: shuilan.cj <shuilan.cj@taobao.com>
2023-03-17 17:29:55 +08:00
ClarkXia 021ceb91c0
fix: remove resolve field of jsnext:main (#6045)
* fix: context replacement for moment

* fix: regex rule

* fix: changelog

* fix: optimize webpack config

* fix: optimize webpack config

* fix: optimize code
2023-03-13 17:44:21 +08:00
ClarkXia 0096f5c01e
fix: make sure server env variable is always false (#6002) 2023-03-10 10:01:13 +08:00
ClarkXia 18ea5b2dbf
fix: enable hmr to avoid reload (#6004)
* fix: enable hmr to avoid reload

* Update entry.client.tsx.ejs

* fix: changelog

* fix: config

* fix: optimize code
2023-03-03 18:03:53 +08:00
ClarkXia 071a627dac
feat: support code spiliting strategy (#5957)
* feat: support code spiliting strategy

* fix: optimize code

* fix: compatible with splitChunks

* fix: compatible with splitChunks

* chore: default value chunks

* Update config.md

* Update routes.ts
2023-02-24 17:22:18 +08:00
ClarkXia 1b6c57832a
feat: on-demand compilation for server (#5824)
* feat: node runner

* feat: node transform

* fix: unexpected modification

* fix: node runner

* test: test case

* test: test case

* test: test case

* fix: add dependencies

* fix: optimize code

* feat: server runner

* feat: optimize code

* fix: test case

* fix: test case

* feat: support on demand pre bundle

* chore: lint warning

* fix: optimize code

* fix: compile options

* fix: optimize code

* fix: add file

* fix: optimize code

* fix: test case

* fix: optimize code

* fix: test

* fix: compile target

* fix: optimize code

* fix: lint

* fix: optimize code
2023-02-22 12:17:31 +08:00
ClarkXia 7705f2fd89
fix: exclude rule of compilation and load compile target (#5906)
* fix: compilation options

* fix: regexp

* chore: changelog

* fix: optimize code
2023-02-15 19:09:41 +08:00
ClarkXia 5f6878ce4c
fix: the value of isServer when compile dataLoader (#5897)
* fix: the value of isServer when compile dataLoader

* Update getCompilerPlugins.ts

---------

Co-authored-by: ZeroLing <i@zeroling.com>
2023-02-13 16:21:43 +08:00
ClarkXia 537d154899
fix: optimize webpack config (#5891)
* fix: optimize webpack config

* chore: version

* fix: lock file
2023-02-13 14:58:06 +08:00
染陌同学 1b1b2bbb09
Feat/support dynamic data loader pha (#5808)
* feat: add dynamicDataLoaders

* feat: support dynimic dataLoader in PHA

* feat: remove dynamicDataLoaders

* feat: add swc config

* fix: should get key from detail

* chore: modify type

* feat: support dev server

* fix: don't remove app-worker.ts

* chore: add build-script

* chore: remove log

* chore: dealwith cr

* fix: should checkout dataloaderConfig

* chore: update lock

* chore: remove keepPlatform

* chore: modify type

* chore: update lock

* fix: modify ejs

* chore: dealwith warning
2023-02-02 15:59:54 +08:00
ZeroLing acfc88427e
fix: dynamic import works in app.tsx (#5840)
* fix: dynamic import works in app.tsx

* fix: test case

* chore: update depenedency version of @ice/webpack-config

* chore: pnpm lock up-to-date
2023-02-02 14:22:35 +08:00
ZeroLing 28d250860e
Using alias + generate template to replace keepPlatform impl (#5710)
* feat: modify generateHtml to generateEntry

* feat: support entry

* chore: update lock

* feat: support extra script

* feat: add config for entry

* feat: support entryType

* feat: add documentToJs

* feat: remove ejs to template

* chore: modify entry to output

* feat: add dom render

* chore: update lock

* chore: should publish templates

* feat: modify type and merge config

* feat: remove setConfig for output

* chore: modify jsOutput

* feat: add paths of outputs

* fix: should get data when after.start.compile

* feat: support dev

* feat: modify dist type

* chore: modify htmlOutput

* fix: modify dirname

* chore: modify dirname

* chore: add type for __ICE__CREATE_ELEMENT

* test: add test for domRender

* feat: add renderToHTML

* chore: modify platform

* feat: support target and renderMode

* fix: test case and renderer

* chore: update lock

* Update build.ts

* chore: add default value to urls

* refactor: constant

* feat: add with weex

* chore: change multi target

* fix: output orders

* fix: build order

* feat: modify disttype

* feat: modify textContent to support styleElement in weex

* fix: dist type javascript

* chore: version change

* fix: merge and versions

* fix: target renderer

* feat: using resolve universal-env

* chore: remove with weex example

* fix: unexpected escape

* fix: add commandArgs defaults for target, rename miniapp platforms to targets

* fix: bundle slash

* fix: add isKraken for env

* fix: compilationConfig type definition

* fix: keepPlatform

* fix: test case

* fix: make env tree shaking works

* fix: using env replacement plugin

---------

Co-authored-by: answershuto <answershuto@gmail.com>
2023-01-30 12:09:40 +08:00
ZeroLing 9f2ee217c2 Merge branch 'release/3.0' into release/3.1.0 2023-01-12 13:57:41 +08:00
ZeroLing 0817129fd3
Fix/rax-compat jsx runtime (#5803)
* fix: jsx runtime for rax-compat

* fix: optional children

* fix: array key validation

* fix: eslint check

* fix: add default commandArgs target

* fix: createElement children args

* docs: add changelog and bump version
2023-01-12 12:04:06 +08:00
ZeroLing 08e1eed8fc
Refactor part of web plugin into common logic. (#5807)
* feat: modify generateHtml to generateEntry

* feat: support entry

* chore: update lock

* feat: support extra script

* feat: add config for entry

* feat: support entryType

* feat: add documentToJs

* feat: remove ejs to template

* chore: modify entry to output

* feat: add dom render

* chore: update lock

* chore: should publish templates

* feat: modify type and merge config

* feat: remove setConfig for output

* chore: modify jsOutput

* feat: add paths of outputs

* fix: should get data when after.start.compile

* feat: support dev

* feat: modify dist type

* chore: modify htmlOutput

* fix: modify dirname

* chore: modify dirname

* chore: add type for __ICE__CREATE_ELEMENT

* test: add test for domRender

* feat: add renderToHTML

* chore: modify platform

* feat: support target and renderMode

* fix: test case and renderer

* chore: update lock

* Update build.ts

* chore: add default value to urls

* refactor: constant

* feat: add with weex

* chore: change multi target

* fix: output orders

* fix: build order

* feat: modify disttype

* feat: modify textContent to support styleElement in weex

* fix: dist type javascript

* chore: version change

* fix: merge and versions

* fix: target renderer

* chore: remove with weex example

* fix: add commandArgs defaults for target, rename miniapp platforms to targets

* fix: bundle slash

Co-authored-by: answershuto <answershuto@gmail.com>
2023-01-11 14:33:14 +08:00
ZeroLing f46d0e7204
feat: support target and renderer (#5700)
* feat: support target and renderMode

* fix: test case and renderer

* Update build.ts

* refactor: constant

* fix: eslint

* fix: remove empty line

* fix: remove useless code

* feat: add import.meta.env

* fix: type webpack

* fix: server compiler defines
2023-01-06 15:07:39 +08:00
luhc228 2d26e96790
refactor: log (#5733)
* chore: log error stack

* feat: namespace logger

* fix: log level

* chore: changelog

* fix: log with no extra info

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-12-27 15:48:28 +08:00
luhc228 b7d4f06852
fix: do not compile data-loader to lower es version (#5758)
* fix: not use swc to compile data-loader

* chore: changelog
2022-12-27 14:48:24 +08:00
ClarkXia 8b98d8a8cc
refactor: server bundle alias (#5736)
* fix: refactor server bundle alias

* chore: update lock

* fix: test case

* fix: test case

* chore: changelog

* fix: optimize code

* fix: compatible with win32

* fix: compatible with win32

* fix: compatible with win32

* fix: optimize code

Co-authored-by: ZeroLing <i@zeroling.com>
2022-12-27 10:58:18 +08:00
ClarkXia 815e072aa4
fix: reduce code size by externalHelpers (#5730) 2022-12-27 09:50:41 +08:00