Commit Graph

231 Commits

Author SHA1 Message Date
Leonardo Venturini
c91daf9d6e revert lru-cache to v6.0.0 2024-06-10 09:09:42 -04:00
Leonardo Venturini
086d8f7b47 upgrade lru-cache to v10 for tool 2024-06-05 14:29:53 -04:00
Radosław Miernik
414270af31 Increased LINKER_CACHE_SALT. 2024-04-27 14:21:10 +02:00
denihs
79c7d8393a - addHtml needs to be async 2024-02-26 12:21:53 -04:00
plb666
f7fec94d99 Fixed some missing awaits and error dump at Mongo startup 2024-02-22 11:43:04 +01:00
denihs
67bc1ddc61 - better error message when throwing error from _getter 2023-11-13 19:27:31 -04:00
denihs
e1535e83e5 - throwing a more helpful error message when there is pending errors when a _get is called 2023-11-13 12:32:20 -04:00
denihs
ce58eb035e - fix test: "custom minifier - devel vs prod" 2023-04-27 14:45:10 -03:00
denihs
c7f16b8ed9 - fix test: login on deploy 2023-04-13 11:52:43 -04:00
zodern
ef61497779 Disable topLevelAwait when compiling for older Meteor versions 2023-03-30 15:50:02 -05:00
zodern
6ee9b1a9ed Temporarily add css without running lazy finalizer 2023-03-03 20:43:19 -06:00
Gabriel Grubba
4e55417b13 Revert "Merge remote-tracking branch 'origin/fix/core-runtime-weak-deps' into release-3.0"
This reverts commit 2b689afb59, reversing
changes made to 766e3a32ca.
2023-03-01 15:35:48 -03:00
Gabriel Grubba
2b689afb59 Merge remote-tracking branch 'origin/fix/core-runtime-weak-deps' into release-3.0
# Conflicts:
#	tools/isobuild/linker.js
2023-02-28 15:04:36 -03:00
zodern
dd82506241 Simplify adding to orderedDeps 2023-02-03 16:51:57 -06:00
zodern
e3839292fc Fix load order of weak deps 2023-02-03 16:37:00 -06:00
zodern
1e718277fb Remove await's for archinfo.host 2023-01-30 13:55:30 -06:00
zodern
f60663ca12 Fix handling implied packages in linker 2023-01-27 17:07:03 -06:00
denihs
048f4a0f47 Merge branch 'feature/top-level-await-reify' into release-3.0-tools-and-mongo
# Conflicts:
#	npm-packages/meteor-babel/package-lock.json
#	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
#	tools/isobuild/linker.js
#	tools/static-assets/server/boot.js
2023-01-18 15:13:27 -04:00
zodern
f48b7575b8 Add new runtime for loading packages and the app 2022-12-23 13:01:10 -06:00
Matheus Castro
53c24bbf6f Remove Fibers from meteor-tools:
- Fixing package stats issues and setting global.asyncLocalStorage when needed.
2022-12-20 17:16:18 -03:00
Matheus Castro
41da434fde Remove Fibers for Meteor Tools:
- Add missing await when reading file on import-scanner and also wait when ensuring the packages dependencies are loading.
- The "create" command is running now!
2022-12-10 00:52:42 -03:00
Matheus Castro
b87eb58609 Remove Fibers for Meteor Tools:
- Correctly create hash from new file.data.
2022-12-06 21:12:34 -03:00
Matheus Castro
3933c2c937 Remove Fibers for Meteor Tools:
- No need to change this code. It doesn't make difference, but if we don't need to change, do not change it!
2022-12-06 19:43:39 -03:00
Matheus Castro
0e10783a1a Remove Fibers for Meteor Tools:
- As the getters are asynchronous for some file operations (i.e file.data, file.hash and file.sourceMap), we need to set those values in a different way.
2022-12-06 18:57:33 -03:00
Matheus Castro
4c68d5342c Remove Fibers for Meteor Tools:
- Adapting the import-scanner to correctly check the files and create the dependency graph.
- Still having errors.
2022-12-05 17:23:54 -03:00
Matheus Castro
b1a6cc0761 Remove Fibers for meteor tools: turns out the package building is still not done. Still need to check why it's failing to require node_modules when evaluating/loading the plugin. 2022-12-04 00:27:50 -03:00
Matheus Castro
022a7e9303 Remove Fibers for meteor tools:
- Changing package/compile steps to use async/await.
2022-11-25 20:15:37 -03:00
Denilson
aece11a87f Revert "Revert "Refactoring/Remove unused imports from tools folder"" 2022-07-13 08:37:42 -04:00
Denilson
f8114747cd Revert "Refactoring/Remove unused imports from tools folder" 2022-07-13 08:33:07 -04:00
afrokick
094cb6b322 remove unused imports from tools 2022-07-06 19:27:53 +03:00
zodern
63b8aa3a50 Fix compilers adding os paths to watchset 2022-04-21 19:14:47 -05:00
zodern
93eedb5cea Allow minifiers to get source path of file 2022-02-28 14:00:28 -06:00
zodern
133273ff24 Enable HMR for all web arch's 2021-10-12 22:43:53 -04:00
filipenevola
125846cefa Merge branch 'release-2.3' into feature/accurate-unused-files-tracking
# Conflicts:
#	tools/isobuild/compiler.js
2021-06-14 13:46:52 -04:00
zodern
30e42bf431 Only use _dataUsed for source resources 2021-05-31 10:44:18 -05:00
zodern
32958e2d34 Track which files build plugins use the content of 2021-05-14 16:36:18 -05:00
Jan Dvorak
b5b7306bed Remove deprecated code from before v1.0
Remove deprecated code from before Meteor 1.0 that  was documented via XXX COMPAT in comments. Move deprecated packages into the deprecated folder (deps, livedata, srp).
2021-04-23 17:56:05 +02:00
zodern
e3066fbd96 Clean up HMR code 2021-01-14 18:01:14 -06:00
zodern
a15de3fed1 Clean up HMR code 2020-10-10 21:36:08 -05:00
zodern
ab3d407d22 Integrate HMR into the meteor tool 2020-10-10 20:52:18 -05:00
zodern
0ab688e53b Merge branch 'devel' into hot-module-reload 2020-09-02 14:53:52 -05:00
zodern
31959a4626 Disable linker cache when we need to link for HMR 2020-07-09 18:54:16 +02:00
zodern
1bc208fe13 Fix duplicate linker cache
The cache file's contents stored by optimisticReadFile was over 10% of the meteor-tool's memory usage.
2020-06-24 15:19:42 -05:00
Ben Newman
b3b5fee25f Add missing lazyFinalizer parameter to InputFile#addHtml.
Fixes #10883.
2020-02-01 13:47:47 -05:00
Ben Newman
b71ab5bec5 Bump compiler.BUILT_BY and LINKER_CACHE_SALT to force rebuild. 2019-11-11 19:12:11 -05:00
Ben Newman
f290eef631 Simplify delayed watching of lazy modules. (#10763)
* Avoid modifying unibuild.watchSet in PackageSourceBatch._watchOutputFiles.

Should fix #10736 by preventing old hashes from remaining in
unibuild.watchSet, which was sometimes causing isUpToDate to fail
immediately upon restart.

* Regression test for issue #10736.
2019-11-08 11:08:56 -05:00
Ben Newman
48d27202e7 Skip watching output files without absPath or sourcePath properties.
https://github.com/meteor/meteor/pull/10522#issuecomment-533393100
2019-09-22 11:50:52 -04:00
Ben Newman
b3d88944ae Explicitly track potentially unused WatchSet files.
The previous implementation simply avoided calling watchSet.addFile for
potentially unused files, trusting that addFile would be called later if
the file was eventually used. However, this strategy left the contents of
watchSet.files incomplete for tasks such as IsopackCache._checkUpToDate,
which require full information about all files, even the ones that might
not be used by the bundle. The new strategy maintains metadata about
potentially unused files in a separate data structure, which will be
merged/cloned/serialized/deserialized along with other WatchSet data.
2019-09-06 16:24:41 -04:00
Ben Newman
4084848d2f Add files to unibuild.watchSet only if needed by unibuild.arch.
Most importantly, this change means that changes to files not used by the
server bundle will not trigger a server restart.

Fixes #10449 by implementing the strategy I described in this comment:
https://github.com/meteor/meteor/pull/10414#issuecomment-481293530
2019-09-05 18:44:19 -04:00
Paulo Mogollón
2ae2690f3a Convert tools/utils/archinfo.js to TypeScript. (#10624)
* Updated code to use modern JS
* Added types
* Stopped using 2 underscore functions (1 remaining)
2019-07-21 12:01:24 -04:00