@rspack/dev-server 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +2 -1
  3. package/dist/config.d.ts +1 -0
  4. package/dist/config.d.ts.map +1 -1
  5. package/dist/server.d.ts.map +1 -1
  6. package/dist/server.js +25 -3
  7. package/dist/server.js.map +1 -1
  8. package/package.json +10 -9
  9. package/src/config.ts +1 -0
  10. package/src/server.ts +28 -4
  11. package/tests/__snapshots__/normalizeOptions.test.ts.snap +19 -80
  12. package/tests/normalizeOptions.test.ts +9 -17
  13. package/tsconfig.tsbuildinfo +1 -1
  14. package/tests/e2e-fixtures/react/node_modules/react/LICENSE +0 -21
  15. package/tests/e2e-fixtures/react/node_modules/react/README.md +0 -37
  16. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -1296
  17. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -10
  18. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +0 -10
  19. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1314
  20. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -11
  21. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +0 -11
  22. package/tests/e2e-fixtures/react/node_modules/react/cjs/react.development.js +0 -2739
  23. package/tests/e2e-fixtures/react/node_modules/react/cjs/react.production.min.js +0 -26
  24. package/tests/e2e-fixtures/react/node_modules/react/cjs/react.shared-subset.development.js +0 -20
  25. package/tests/e2e-fixtures/react/node_modules/react/cjs/react.shared-subset.production.min.js +0 -10
  26. package/tests/e2e-fixtures/react/node_modules/react/index.js +0 -7
  27. package/tests/e2e-fixtures/react/node_modules/react/jsx-dev-runtime.js +0 -7
  28. package/tests/e2e-fixtures/react/node_modules/react/jsx-runtime.js +0 -7
  29. package/tests/e2e-fixtures/react/node_modules/react/package.json +0 -47
  30. package/tests/e2e-fixtures/react/node_modules/react/react.shared-subset.js +0 -7
  31. package/tests/e2e-fixtures/react/node_modules/react/umd/react.development.js +0 -3342
  32. package/tests/e2e-fixtures/react/node_modules/react/umd/react.production.min.js +0 -31
  33. package/tests/e2e-fixtures/react/node_modules/react/umd/react.profiling.min.js +0 -31
  34. package/tests/e2e-fixtures/react/node_modules/react-dom/LICENSE +0 -21
  35. package/tests/e2e-fixtures/react/node_modules/react-dom/README.md +0 -60
  36. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -7018
  37. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0 -93
  38. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js +0 -7078
  39. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js +0 -101
  40. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -7003
  41. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -96
  42. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -7059
  43. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -102
  44. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -1741
  45. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -40
  46. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom.development.js +0 -29868
  47. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom.production.min.js +0 -323
  48. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -367
  49. package/tests/e2e-fixtures/react/node_modules/react-dom/client.js +0 -25
  50. package/tests/e2e-fixtures/react/node_modules/react-dom/index.js +0 -38
  51. package/tests/e2e-fixtures/react/node_modules/react-dom/package.json +0 -62
  52. package/tests/e2e-fixtures/react/node_modules/react-dom/profiling.js +0 -38
  53. package/tests/e2e-fixtures/react/node_modules/react-dom/server.browser.js +0 -17
  54. package/tests/e2e-fixtures/react/node_modules/react-dom/server.js +0 -3
  55. package/tests/e2e-fixtures/react/node_modules/react-dom/server.node.js +0 -17
  56. package/tests/e2e-fixtures/react/node_modules/react-dom/test-utils.js +0 -7
  57. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-server-legacy.browser.development.js +0 -7015
  58. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-server-legacy.browser.production.min.js +0 -75
  59. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -7000
  60. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -76
  61. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -1737
  62. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -33
  63. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom.development.js +0 -29869
  64. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom.production.min.js +0 -267
  65. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -285
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- var m = require('react-dom');
4
- if (process.env.NODE_ENV === 'production') {
5
- exports.createRoot = m.createRoot;
6
- exports.hydrateRoot = m.hydrateRoot;
7
- } else {
8
- var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
9
- exports.createRoot = function(c, o) {
10
- i.usingClientEntryPoint = true;
11
- try {
12
- return m.createRoot(c, o);
13
- } finally {
14
- i.usingClientEntryPoint = false;
15
- }
16
- };
17
- exports.hydrateRoot = function(c, h, o) {
18
- i.usingClientEntryPoint = true;
19
- try {
20
- return m.hydrateRoot(c, h, o);
21
- } finally {
22
- i.usingClientEntryPoint = false;
23
- }
24
- };
25
- }
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- function checkDCE() {
4
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5
- if (
6
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
7
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
8
- ) {
9
- return;
10
- }
11
- if (process.env.NODE_ENV !== 'production') {
12
- // This branch is unreachable because this function is only called
13
- // in production, but the condition is true only in development.
14
- // Therefore if the branch is still here, dead code elimination wasn't
15
- // properly applied.
16
- // Don't change the message. React DevTools relies on it. Also make sure
17
- // this message doesn't occur elsewhere in this function, or it will cause
18
- // a false positive.
19
- throw new Error('^_^');
20
- }
21
- try {
22
- // Verify that the code above has been dead code eliminated (DCE'd).
23
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
24
- } catch (err) {
25
- // DevTools shouldn't crash React, no matter what.
26
- // We should still report in case we break this code.
27
- console.error(err);
28
- }
29
- }
30
-
31
- if (process.env.NODE_ENV === 'production') {
32
- // DCE check should happen before ReactDOM bundle executes so that
33
- // DevTools can report bad minification during injection.
34
- checkDCE();
35
- module.exports = require('./cjs/react-dom.production.min.js');
36
- } else {
37
- module.exports = require('./cjs/react-dom.development.js');
38
- }
@@ -1,62 +0,0 @@
1
- {
2
- "name": "react-dom",
3
- "version": "18.2.0",
4
- "description": "React package for working with the DOM.",
5
- "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/facebook/react.git",
9
- "directory": "packages/react-dom"
10
- },
11
- "keywords": [
12
- "react"
13
- ],
14
- "license": "MIT",
15
- "bugs": {
16
- "url": "https://github.com/facebook/react/issues"
17
- },
18
- "homepage": "https://reactjs.org/",
19
- "dependencies": {
20
- "loose-envify": "^1.1.0",
21
- "scheduler": "^0.23.0"
22
- },
23
- "peerDependencies": {
24
- "react": "^18.2.0"
25
- },
26
- "files": [
27
- "LICENSE",
28
- "README.md",
29
- "index.js",
30
- "client.js",
31
- "profiling.js",
32
- "server.js",
33
- "server.browser.js",
34
- "server.node.js",
35
- "test-utils.js",
36
- "cjs/",
37
- "umd/"
38
- ],
39
- "exports": {
40
- ".": "./index.js",
41
- "./client": "./client.js",
42
- "./server": {
43
- "deno": "./server.browser.js",
44
- "worker": "./server.browser.js",
45
- "browser": "./server.browser.js",
46
- "default": "./server.node.js"
47
- },
48
- "./server.browser": "./server.browser.js",
49
- "./server.node": "./server.node.js",
50
- "./profiling": "./profiling.js",
51
- "./test-utils": "./test-utils.js",
52
- "./package.json": "./package.json"
53
- },
54
- "browser": {
55
- "./server.js": "./server.browser.js"
56
- },
57
- "browserify": {
58
- "transform": [
59
- "loose-envify"
60
- ]
61
- }
62
- }
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- function checkDCE() {
4
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5
- if (
6
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
7
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
8
- ) {
9
- return;
10
- }
11
- if (process.env.NODE_ENV !== 'production') {
12
- // This branch is unreachable because this function is only called
13
- // in production, but the condition is true only in development.
14
- // Therefore if the branch is still here, dead code elimination wasn't
15
- // properly applied.
16
- // Don't change the message. React DevTools relies on it. Also make sure
17
- // this message doesn't occur elsewhere in this function, or it will cause
18
- // a false positive.
19
- throw new Error('^_^');
20
- }
21
- try {
22
- // Verify that the code above has been dead code eliminated (DCE'd).
23
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
24
- } catch (err) {
25
- // DevTools shouldn't crash React, no matter what.
26
- // We should still report in case we break this code.
27
- console.error(err);
28
- }
29
- }
30
-
31
- if (process.env.NODE_ENV === 'production') {
32
- // DCE check should happen before ReactDOM bundle executes so that
33
- // DevTools can report bad minification during injection.
34
- checkDCE();
35
- module.exports = require('./cjs/react-dom.profiling.min.js');
36
- } else {
37
- module.exports = require('./cjs/react-dom.development.js');
38
- }
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var l, s;
4
- if (process.env.NODE_ENV === 'production') {
5
- l = require('./cjs/react-dom-server-legacy.browser.production.min.js');
6
- s = require('./cjs/react-dom-server.browser.production.min.js');
7
- } else {
8
- l = require('./cjs/react-dom-server-legacy.browser.development.js');
9
- s = require('./cjs/react-dom-server.browser.development.js');
10
- }
11
-
12
- exports.version = l.version;
13
- exports.renderToString = l.renderToString;
14
- exports.renderToStaticMarkup = l.renderToStaticMarkup;
15
- exports.renderToNodeStream = l.renderToNodeStream;
16
- exports.renderToStaticNodeStream = l.renderToStaticNodeStream;
17
- exports.renderToReadableStream = s.renderToReadableStream;
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = require('./server.node');
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var l, s;
4
- if (process.env.NODE_ENV === 'production') {
5
- l = require('./cjs/react-dom-server-legacy.node.production.min.js');
6
- s = require('./cjs/react-dom-server.node.production.min.js');
7
- } else {
8
- l = require('./cjs/react-dom-server-legacy.node.development.js');
9
- s = require('./cjs/react-dom-server.node.development.js');
10
- }
11
-
12
- exports.version = l.version;
13
- exports.renderToString = l.renderToString;
14
- exports.renderToStaticMarkup = l.renderToStaticMarkup;
15
- exports.renderToNodeStream = l.renderToNodeStream;
16
- exports.renderToStaticNodeStream = l.renderToStaticNodeStream;
17
- exports.renderToPipeableStream = s.renderToPipeableStream;
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/react-dom-test-utils.production.min.js');
5
- } else {
6
- module.exports = require('./cjs/react-dom-test-utils.development.js');
7
- }