@openedx/frontend-base 1.0.0-alpha.4 → 1.0.0-alpha.6
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.
- package/config/webpack/webpack.config.dev.js +4 -0
- package/config/webpack/webpack.config.dev.shell.js +4 -0
- package/package.json +1 -1
- package/runtime/slots/widget/iframe/hooks.ts +1 -1
- package/tools/dist/webpack/webpack.config.dev.js +4 -0
- package/tools/dist/webpack/webpack.config.dev.shell.js +4 -0
|
@@ -72,5 +72,9 @@ const config = {
|
|
|
72
72
|
// This configures webpack-dev-server which serves bundles from memory and provides live
|
|
73
73
|
// reloading.
|
|
74
74
|
devServer: (0, common_config_1.getDevServer)(),
|
|
75
|
+
// Limit the number of watched files to avoid `inotify` resource starvation.
|
|
76
|
+
watchOptions: {
|
|
77
|
+
ignored: /node_modules/
|
|
78
|
+
}
|
|
75
79
|
};
|
|
76
80
|
exports.default = config;
|
|
@@ -106,5 +106,9 @@ const config = {
|
|
|
106
106
|
// This configures webpack-dev-server which serves bundles from memory and provides live
|
|
107
107
|
// reloading.
|
|
108
108
|
devServer: (0, common_config_1.getDevServer)(),
|
|
109
|
+
// Limit the number of watched files to avoid `inotify` resource starvation.
|
|
110
|
+
watchOptions: {
|
|
111
|
+
ignored: /node_modules/
|
|
112
|
+
}
|
|
109
113
|
};
|
|
110
114
|
exports.default = config;
|
package/package.json
CHANGED
|
@@ -127,7 +127,7 @@ export function dispatchUnmountedEvent() {
|
|
|
127
127
|
*/
|
|
128
128
|
export function useElementSize() {
|
|
129
129
|
// Holds a reference to the ResizeObserver
|
|
130
|
-
const observerRef = useRef<ResizeObserver>();
|
|
130
|
+
const observerRef = useRef<ResizeObserver | null>(null);
|
|
131
131
|
|
|
132
132
|
const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
|
|
133
133
|
const [offset, setOffset] = useState({ x: 0, y: 0 });
|
|
@@ -72,5 +72,9 @@ const config = {
|
|
|
72
72
|
// This configures webpack-dev-server which serves bundles from memory and provides live
|
|
73
73
|
// reloading.
|
|
74
74
|
devServer: (0, common_config_1.getDevServer)(),
|
|
75
|
+
// Limit the number of watched files to avoid `inotify` resource starvation.
|
|
76
|
+
watchOptions: {
|
|
77
|
+
ignored: /node_modules/
|
|
78
|
+
}
|
|
75
79
|
};
|
|
76
80
|
exports.default = config;
|
|
@@ -106,5 +106,9 @@ const config = {
|
|
|
106
106
|
// This configures webpack-dev-server which serves bundles from memory and provides live
|
|
107
107
|
// reloading.
|
|
108
108
|
devServer: (0, common_config_1.getDevServer)(),
|
|
109
|
+
// Limit the number of watched files to avoid `inotify` resource starvation.
|
|
110
|
+
watchOptions: {
|
|
111
|
+
ignored: /node_modules/
|
|
112
|
+
}
|
|
109
113
|
};
|
|
110
114
|
exports.default = config;
|