Commit Graph

92 Commits

Author SHA1 Message Date
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
Tobias Speicher 8f56fcba72
Replace deprecated String.prototype.substr()
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-13 22:54:18 +01:00
Ivan Kopeykin 157b420a1e use infrastructure-log file 2022-02-15 09:08:02 +03:00
Ivan Kopeykin 1e7acc5e77 refactor infrastructure log functionality 2022-02-14 11:36:32 +03:00
Ivan Kopeykin a905ea376e fix discussions 2022-02-11 11:07:54 +03:00
Tobias Koppers 7afcc5d4ff allow to disable some deprecations
add `experiments.backCompat: false` (default in `experiments.futureDefaults`)
remove unused `experiments.asset`
enable `experiments.topLevelAwait` and `experiments.asyncWebAssembly` by default in `experiments.futureDefaults`
2021-11-05 09:54:51 +01:00
Tobias Koppers d3f8e16810 update webpack-sources for performance problem in hashing
add `stats.reasonsSpace` and `stats.groupReasonsByOrigin` to control large set of reasons
`detailed` preset limites all spaces to 1000 by default

fixes #13825
2021-07-20 13:29:25 +02:00
Tobias Koppers b29c44e223 add separate webpack warmup step with large timeout 2021-07-15 16:37:54 +02:00
Tobias Koppers 8a1dca971b Merge branch 'main' into dependabot/npm_and_yarn/jest-27.0.4 2021-07-08 15:38:39 +02:00
Tobias Koppers 8e2426e7b4 cleanup more test suite context variables 2021-07-08 12:19:12 +02:00
Tobias Koppers e14197ddd9 avoid importing large package on top-level in test suite 2021-07-07 18:46:39 +02:00
Tobias Koppers 6ca8505f26 Merge branch 'main' into dependabot/npm_and_yarn/jest-27.0.4 2021-07-05 16:10:02 +02:00
Tobias Koppers d3035701f4 add test case for large assets 2021-06-29 13:08:38 +02:00
Tobias Koppers 6dbfb93f8a Merge branch 'master' into dependabot/npm_and_yarn/jest-27.0.4 2021-06-28 11:38:29 +02:00
Tobias Koppers a53578be7e implement synthetic modules for node 10 2021-06-25 10:37:35 +02:00
Tobias Koppers 629f9f031c add support for module externals and automatic externals 2021-06-24 16:44:14 +02:00
Tobias Koppers 15408018cb partially fix test cases 2021-06-24 10:05:37 +02:00
Tobias Koppers 4da99d8254 add `module` library support, test and example
add test cases for `experiments.outputModule`
2021-06-23 14:49:14 +02:00
Tobias Koppers 9d123b1b53 fix createLazyTestEnv for new jest major version 2021-06-22 09:39:17 +02:00
Tobias Koppers ad7cd0d1e0 increase timeout 2021-05-20 18:24:00 +02:00
Tobias Koppers 65d9d062d9 improve test performance 2021-05-20 13:06:22 +02:00
Tobias Koppers 4e117781e8 improvements
add appendOnly flag
add custom console
add custom stream
2021-04-06 15:20:27 +02:00
Tobias Koppers 38c7cf2d85 fix caching crash in ConcatenatedModule
Ensure that no warnings/errors occur during testing
add serialization for some missing warnings
2021-01-08 15:44:26 +01:00
Tobias Koppers 6db9f1f617 build chunk graph with runtime awareness
this avoid including modules that are not used in specific runtimes
add new test suite to test usedExports: "global" too
2020-10-16 11:47:38 +02:00
Tobias Koppers 87daf8dcd8 add test case 2020-10-16 11:47:29 +02:00
Tobias Koppers 2888c8a406
Revert "fix unused modules in chunk when optimizing runtime-specific " 2020-10-15 20:17:26 +02:00
Tobias Koppers 4669600bdc
Merge pull request #11690 from webpack/bugfix/11673
fix unused modules in chunk when optimizing runtime-specific
2020-10-15 13:42:34 +02:00
Tobias Koppers 250e37c78c add test case 2020-10-15 10:18:39 +02:00
Tobias Koppers 79256529c4 upgrade terser-webpack-plugin 2020-10-15 10:01:10 +02:00
Tobias Koppers 9af1d7526b refactor module concatenation to address discovered bugs/edge cases 2020-09-15 12:36:02 +02:00
Tobias Koppers 2d4c9da6a6 enable mjs experiment 2020-09-07 23:15:24 +02:00
Tobias Koppers dfc8e35f2d enable experiments.importAsync by default
remove experiments.importAwait
2020-08-04 00:47:08 +02:00
Tobias Koppers 8a0379adfa avoid using deprecated config in test cases 2020-07-20 12:38:49 +02:00
Tobias Koppers 205bbb4c0d improve compatibly with node.js ESM
improve experiments.mjs to be more compatibly with node.js ESM
  - add support for `type: "module"` in package.json
  - add support for `*.cjs`
  - enable strict ESM for data uris with `text/javascript` or `application/javascript`
  - disallow not fully specified requests in imports `*.mjs` or `type: "module"`

add `descriptionData` rule condition to match package.json info
fix passing resolveOptions along context modules
2020-07-17 13:58:29 +02:00
Tobias Koppers fd9b399ae9 Create Cache facade to make it easier to use
add missing serializers for classes used in test suite
2020-07-15 11:14:28 +02:00
Tobias Koppers 659e8ab358 make ConfigTestCases templated to allow extending 2020-06-02 12:30:39 +02:00
Mohsen Azimi 7b07a8db66 Upgrade to Prettier 2 2020-03-28 18:20:24 -04:00
shisama fa652bb8ec Remove mkdirp package from devDependencies
webpack supports Node.js 10.13.0 as minimum Node.js version now.
Node.js 10.13.0 provides recursive option for fs.mkdirSync.
So, mkdirp package is not needed.
2020-01-14 00:29:12 +09:00
Tobias Koppers bbace17380 generate await code for import without await too
fixes #10194
2019-12-30 20:34:36 +01:00
Tobias Koppers 4221d2d633 test serialization of PureExpressionDependency 2019-09-04 09:08:44 +02:00
Tobias Koppers 6e2d4e0a16 remove cache.loglevel in test cases 2019-08-12 16:39:35 +02:00
Tobias Koppers fe790eea65 update eslint and lint-staged 2019-08-06 10:57:37 +02:00
Tobias Koppers 955d5689a9 remove experimental from module type name
since there is the `experiments` config now
2019-07-15 15:03:29 +02:00
Tobias Koppers b2e7837288 replace Object.assign with object spread 2019-06-19 13:16:05 +02:00
Tobias Koppers 03f1fa1e0c shorter timeouts for cached builds 2019-06-13 14:07:39 +02:00
Tobias Koppers e9c0d068dd refactor filesystem interfaces
add Compiler.intermediateFileSystem
avoid using `path` and `fs` module when possible
move `join`, `mkdirp` and `dirname` into utils
join and dirname is optional in FileSystem interface
remove mkdirp from Filesystem interface
2019-06-11 17:32:58 +02:00
Tobias Koppers 12a3e7c854 create experiments for importAwait importAsync and (a)syncWebAssembly 2019-06-05 13:32:22 +02:00
Tobias Koppers de61023616 add side-by-side wasm support based on async modules
type: "webassembly/async-experimental"
remove i64 importing limitation since it will have BigInt integration eventually
update wasm example
2019-06-04 23:28:56 +02:00
Tobias Koppers ad64a1c2ca add experiment.mjs config option 2019-06-04 11:33:26 +02:00
Tobias Koppers 0de5b54f25 disable node stuff in node targets 2019-05-22 15:55:21 +02:00