196 Commits

Author SHA1 Message Date
Anton Korzunov
0e4b57fed4 v5.16.0 2023-07-09 16:08:19 +10:00
Edward Kimmel
e18e37afd8
feat: Allow additional identifiers to be passed in to the babel plugin (#966)
* Allow additional identifiers to be passed in to the babel plugin

* Now allowing an array of name/package entries to be transformed
2023-07-06 12:57:59 +10:00
Øyvind Saltvik
2d1645d855
Added getEntrypointPath to ChunkExtractor and reading json from fs (#951)
* Added getEntrypointPath to ChunkExtractor and reading json from inputFilesystem instead of require

* Adds getAllScriptAssetsPaths to ChunkExtractor
2023-02-03 14:00:16 +11:00
Anton Korzunov
82c7019502 v5.15.3 2023-01-28 15:28:30 +11:00
Anton Korzunov
66edc37a73 fix: add React 17 and 18 to package dependencies, fixes #718 2023-01-28 15:24:22 +11:00
Øyvind Saltvik
ede55583c4
Support renamed imports in babel-plugin (#929)
* Support renamed imports in babel-plugin

* Added back default behaviour with a plugin option
2022-12-12 12:20:14 +11:00
Øyvind Saltvik
3ec9b64009
Added transformation of lazy (#925) 2022-12-05 16:57:26 +11:00
Anton Korzunov
711e4b6d31 v5.15.2 2021-12-12 18:33:43 +11:00
Anton Korzunov
56ef25623d format files 2021-12-12 18:33:14 +11:00
Anton Korzunov
45f2d9133c
fix: use stable promises for load/preload/React (#858) 2021-12-12 18:32:06 +11:00
Matej Vobornik
33cb54dfbb
cache promise on load/preload (#830) 2021-12-12 15:24:42 +11:00
jinasonlin
9ff66939ee
fix: loadAsync Loadable should copy statics (#839) 2021-09-26 13:46:05 +10:00
Martin Jantošovič
3b9cb202a0
fix: Clear correct cache when compiling with Webpack (#838)
* fix: Clear correct cache when compiling with Webpack

* Update packages/server/src/util.js

Co-authored-by: Anton Korzunov <thekashey@gmail.com>
2021-09-26 13:45:15 +10:00
Anton Korzunov
629c80e42e v5.15.1 2021-08-17 18:05:56 +10:00
Jarrett Confrey
9b34195627
fix: SubResourceIntegrity (#803) 2021-08-07 18:23:53 +10:00
Paolo Priotto
73b17fd067
fix: add cachedAssets to stats options (#779)
fixes #770
2021-05-26 18:20:04 +10:00
Anton Korzunov
e74b3c9d9d v5.15.0 2021-05-08 17:29:33 +10:00
Anton Korzunov
9305d03844 update node to v12 2021-05-08 17:26:03 +10:00
Eliseu Monar dos Santos
cea9f249f7
feat: webpack plugin doesn't need all chunk info (#735)
I'm currently working on a pretty massive project with hundreds of split points, thousands of modules (plus node_modules), CSS, hot reloading, all the goodies... but *LoadablePlugin* was taking a very significant amount of time to run (about 1.2s). With these changes it went down to ~7ms.
2021-05-08 12:08:56 +10:00
OSamkova
8f10896058
Prevent memory leaks in staging by adding env var (#730)
* add env variable to prevent reload

* add env variable to prevent reload

* add env variable to prevent reload

* lint error fix

* prevent memory leaks

* detect HMR
2021-04-07 14:16:15 +10:00
Yen-Wei Liu
9ad6bf569a
[perf] Set all:false in stats.toJson call (#708)
* [perf] Set all:false in stats.toJson call

* Update options
2021-04-05 15:55:19 +10:00
Will Van Rensselaer
d3513679ed
feat: support multiple Webpack runtimes (#701)
* feat: support multiple Webpack runtimes

* namespace chunk loading global in loadableReady

* Change namespace to chunkLoadingGlobal

* Update size snapshot
2021-04-05 15:54:30 +10:00
Emily Marigold Klassen
b640c82a74
fix: add displayNames to generated components (#731)
Co-authored-by: Emily Marigold Klassen <forivall@users.noreply.github.com>
2021-03-31 13:45:07 +11:00
Suman Bhattarai
cba6cab475
fix webpack 5 contenthash bug by switching to PROCESS_ASSETS_STAGE_REPORT (#713) 2021-03-04 21:48:26 +11:00
Anton Korzunov
3676e488a7 v5.14.2 2021-01-31 19:12:39 +11:00
Anton Korzunov
6d0f72cb81 update scripts 2021-01-31 19:03:58 +11:00
Anton Korzunov
a9d3d14250 lint 2021-01-24 23:54:55 +11:00
Anton Korzunov
729ac1dd6d refactor server test to regenerate stats fixture from example 2021-01-24 23:50:47 +11:00
Anton Korzunov
41a94412ac Merge branch 'master' of github.com:smooth-code/loadable-components into master 2021-01-24 19:15:59 +11:00
Jason Chen
6926e190c8
fix: ignore css chunk (#689) 2021-01-24 19:15:48 +11:00
Anton Korzunov
a7db05969f chore(lint): reformat webpack plugin 2021-01-24 18:45:56 +11:00
Kévin Berthommier
671ef527e7
fix: update hooks for webpack 5 (#676)
* fix: update hooks for webpack 5

* fix: fix webpack hook type
2021-01-24 18:40:16 +11:00
Jason Chen
dde2252136
fix: remove main asset path query (#686) 2021-01-12 21:07:14 +11:00
Anton Korzunov
89cf124f90 v5.14.1 2020-10-22 19:10:34 +11:00
Anton Korzunov
d009008fef chore(lint): apply prettier 2020-10-22 19:07:35 +11:00
Anton Korzunov
1725a620c3
Fix sync resolution (#651)
* chore(tests): make breaking case for webpack4

* fix: loadableReady should not resolve synchronously, fixes #634

* chore(size): commit size change
2020-10-22 19:00:35 +11:00
Anton Korzunov
51baf955a8 v5.14.0 2020-10-20 23:23:47 +11:00
Anton Korzunov
787e29e9c4 commit size snapshot 2020-10-20 23:23:06 +11:00
Anton Korzunov
575fe2b3f5 fix: treat mjs as script 2020-10-20 23:22:09 +11:00
Anton Korzunov
b4151d85b3
fix: do not derive cache key if component is static, fixes #629 (#630) 2020-10-12 21:31:16 +11:00
Stephane ROBINO
e882e4d812
feat: make packages webpack 5 compatible (#638)
Signed-off-by: Stéphane Robino <stephane@wttj.co>
Signed-off-by: Robert Douglas <robert@wttj.co>
2020-10-12 20:47:34 +11:00
Xingwang Liao
25b532eb53
fix: add key to chunks script elements (#631)
fix #628
2020-09-17 12:18:47 +10:00
Anton Korzunov
94e0c424c9 v5.13.2 2020-09-14 19:38:24 +10:00
Anton Korzunov
c9d1663577
Preparing release 5.14 (#625)
* fix typo #595

* fix: human readable errors

* remove babel-plugin-bind

* abstract stub creation in tests

* apply prettier

* decouple async load and require

* linting
2020-09-09 17:39:58 +10:00
kamikazePT
42fbdd0d55
fix: Fixed lazy usage with Suspense and Error Boundary together (#521)
* Fixed lazy usage with Suspense and Error Boundary together

* Typo

* v1.0.0-fork

* accidental push

* Condition was reversed

* Fixed Suspense with full dynamic import after fulfilled promise

* Added unit test

* cached promise

* added tests for multiple elements of same async component

* renamed unit test

* added retryable error boundary

* reworked tests

* Retrying working for lazy and loadable

* linter should run on pre-commit... :/

* upped max bundle size

* fix: Fixed suspense tests and fixed un-throwable pending promises when using suspense

* refactor: removed unnecessary wait in test

* test: fixed test regarding nested suspense

* test: fixed fucked up assertion

* fix: fixed weird corner case on error boundary not being reached

* feat: removed proxy

* fix: removed unnecessary code

* fix: fixed unnecesssary stack of callbacks
2020-09-05 10:09:22 +10:00
Mark Woodward
95e6ecb0dd fix: spread nested required chunks array 2020-08-04 08:25:46 +01:00
Anton Korzunov
cd5113cc34 apply prettier 2020-07-02 17:47:13 +10:00
Anton Korzunov
8cf392d124 v5.13.1 2020-07-02 17:40:10 +10:00
Anton Korzunov
4a0879ab31 cleanup 2020-07-02 17:26:43 +10:00
Anton Korzunov
831aec0315 fix: expose used chunkNames from a server. Fixes #587 2020-07-02 17:19:11 +10:00