@rspack/dev-server 0.1.2 → 0.1.3

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 (86) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/server.d.ts.map +1 -1
  3. package/dist/server.js +3 -6
  4. package/dist/server.js.map +1 -1
  5. package/package.json +5 -5
  6. package/src/server.ts +3 -7
  7. package/tsconfig.tsbuildinfo +1 -1
  8. package/tests/e2e/hot-reaload.test.ts +0 -115
  9. package/tests/e2e-fixtures/react/app.jsx +0 -14
  10. package/tests/e2e-fixtures/react/index.css +0 -3
  11. package/tests/e2e-fixtures/react/index.html +0 -12
  12. package/tests/e2e-fixtures/react/index.jsx +0 -6
  13. package/tests/e2e-fixtures/react/node_modules/react/LICENSE +0 -21
  14. package/tests/e2e-fixtures/react/node_modules/react/README.md +0 -37
  15. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -1296
  16. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -10
  17. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +0 -10
  18. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1314
  19. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -11
  20. package/tests/e2e-fixtures/react/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +0 -11
  21. package/tests/e2e-fixtures/react/node_modules/react/cjs/react.development.js +0 -2739
  22. package/tests/e2e-fixtures/react/node_modules/react/cjs/react.production.min.js +0 -26
  23. package/tests/e2e-fixtures/react/node_modules/react/cjs/react.shared-subset.development.js +0 -20
  24. package/tests/e2e-fixtures/react/node_modules/react/cjs/react.shared-subset.production.min.js +0 -10
  25. package/tests/e2e-fixtures/react/node_modules/react/index.js +0 -7
  26. package/tests/e2e-fixtures/react/node_modules/react/jsx-dev-runtime.js +0 -7
  27. package/tests/e2e-fixtures/react/node_modules/react/jsx-runtime.js +0 -7
  28. package/tests/e2e-fixtures/react/node_modules/react/package.json +0 -47
  29. package/tests/e2e-fixtures/react/node_modules/react/react.shared-subset.js +0 -7
  30. package/tests/e2e-fixtures/react/node_modules/react/umd/react.development.js +0 -3342
  31. package/tests/e2e-fixtures/react/node_modules/react/umd/react.production.min.js +0 -31
  32. package/tests/e2e-fixtures/react/node_modules/react/umd/react.profiling.min.js +0 -31
  33. package/tests/e2e-fixtures/react/node_modules/react-dom/LICENSE +0 -21
  34. package/tests/e2e-fixtures/react/node_modules/react-dom/README.md +0 -60
  35. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -7018
  36. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0 -93
  37. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js +0 -7078
  38. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js +0 -101
  39. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -7003
  40. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -96
  41. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -7059
  42. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +0 -102
  43. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -1741
  44. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +0 -40
  45. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom.development.js +0 -29868
  46. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom.production.min.js +0 -323
  47. package/tests/e2e-fixtures/react/node_modules/react-dom/cjs/react-dom.profiling.min.js +0 -367
  48. package/tests/e2e-fixtures/react/node_modules/react-dom/client.js +0 -25
  49. package/tests/e2e-fixtures/react/node_modules/react-dom/index.js +0 -38
  50. package/tests/e2e-fixtures/react/node_modules/react-dom/package.json +0 -62
  51. package/tests/e2e-fixtures/react/node_modules/react-dom/profiling.js +0 -38
  52. package/tests/e2e-fixtures/react/node_modules/react-dom/server.browser.js +0 -17
  53. package/tests/e2e-fixtures/react/node_modules/react-dom/server.js +0 -3
  54. package/tests/e2e-fixtures/react/node_modules/react-dom/server.node.js +0 -17
  55. package/tests/e2e-fixtures/react/node_modules/react-dom/test-utils.js +0 -7
  56. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-server-legacy.browser.development.js +0 -7015
  57. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-server-legacy.browser.production.min.js +0 -75
  58. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-server.browser.development.js +0 -7000
  59. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +0 -76
  60. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-test-utils.development.js +0 -1737
  61. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +0 -33
  62. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom.development.js +0 -29869
  63. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom.production.min.js +0 -267
  64. package/tests/e2e-fixtures/react/node_modules/react-dom/umd/react-dom.profiling.min.js +0 -285
  65. package/tests/e2e-fixtures/react/node_modules/scheduler/LICENSE +0 -21
  66. package/tests/e2e-fixtures/react/node_modules/scheduler/README.md +0 -9
  67. package/tests/e2e-fixtures/react/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -700
  68. package/tests/e2e-fixtures/react/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +0 -20
  69. package/tests/e2e-fixtures/react/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -207
  70. package/tests/e2e-fixtures/react/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +0 -14
  71. package/tests/e2e-fixtures/react/node_modules/scheduler/cjs/scheduler.development.js +0 -634
  72. package/tests/e2e-fixtures/react/node_modules/scheduler/cjs/scheduler.production.min.js +0 -19
  73. package/tests/e2e-fixtures/react/node_modules/scheduler/index.js +0 -7
  74. package/tests/e2e-fixtures/react/node_modules/scheduler/package.json +0 -36
  75. package/tests/e2e-fixtures/react/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +0 -699
  76. package/tests/e2e-fixtures/react/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +0 -19
  77. package/tests/e2e-fixtures/react/node_modules/scheduler/umd/scheduler.development.js +0 -152
  78. package/tests/e2e-fixtures/react/node_modules/scheduler/umd/scheduler.production.min.js +0 -146
  79. package/tests/e2e-fixtures/react/node_modules/scheduler/umd/scheduler.profiling.min.js +0 -146
  80. package/tests/e2e-fixtures/react/node_modules/scheduler/unstable_mock.js +0 -7
  81. package/tests/e2e-fixtures/react/node_modules/scheduler/unstable_post_task.js +0 -7
  82. package/tests/e2e-fixtures/react/package.json +0 -8
  83. package/tests/e2e-fixtures/react/webpack.config.js +0 -26
  84. package/tests/helpers/emitFile.ts +0 -69
  85. package/tests/helpers/runBrowser.ts +0 -85
  86. package/tests/helpers/tempDir.ts +0 -58
@@ -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
- }