@rspack/dev-server 0.1.2 → 0.1.4

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 +16 -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,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Document</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- </body>
12
- </html>
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import { createRoot } from "react-dom/client";
3
- import { App } from "./app";
4
-
5
- const container = createRoot(document.getElementById("root"));
6
- container.render(<App />);
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Facebook, Inc. and its affiliates.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,37 +0,0 @@
1
- # `react`
2
-
3
- React is a JavaScript library for creating user interfaces.
4
-
5
- The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.
6
-
7
- **Note:** by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.
8
-
9
- ## Usage
10
-
11
- ```js
12
- import { useState } from 'react';
13
- import { createRoot } from 'react-dom/client';
14
-
15
- function Counter() {
16
- const [count, setCount] = useState(0);
17
- return (
18
- <>
19
- <h1>{count}</h1>
20
- <button onClick={() => setCount(count + 1)}>
21
- Increment
22
- </button>
23
- </>
24
- );
25
- }
26
-
27
- const root = createRoot(document.getElementById('root'));
28
- root.render(<App />);
29
- ```
30
-
31
- ## Documentation
32
-
33
- See https://reactjs.org/
34
-
35
- ## API
36
-
37
- See https://reactjs.org/docs/react-api.html