@teambit/ui 0.0.1068 → 0.0.1070
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/artifacts/ui-bundle/public/bit/asset-manifest.json +6 -6
- package/artifacts/ui-bundle/public/bit/index.html +1 -1
- package/artifacts/ui-bundle/public/bit/service-worker.js +1 -1
- package/artifacts/ui-bundle/public/bit/static/css/{166.eb486148.css → 203.b6a56e12.css} +1 -1
- package/artifacts/ui-bundle/public/bit/static/js/{166.e926f8a1.js → 203.1a8b5143.js} +6 -6
- package/artifacts/ui-bundle/public/bit/static/js/{main.26024c68.js → main.945b4846.js} +1 -1
- package/dist/{preview-1685503265901.js → preview-1685960855192.js} +2 -2
- package/dist/ui.main.runtime.js +13 -4
- package/dist/ui.main.runtime.js.map +1 -1
- package/dist/webpack/webpack.dev.config.js +11 -19
- package/dist/webpack/webpack.dev.config.js.map +1 -1
- package/package-tar/teambit-ui-0.0.1070.tgz +0 -0
- package/package.json +13 -13
- package/webpack/webpack.dev.config.ts +20 -24
- package/package-tar/teambit-ui-0.0.1068.tgz +0 -0
- /package/artifacts/ui-bundle/public/bit/static/js/{166.e926f8a1.js.LICENSE.txt → 203.1a8b5143.js.LICENSE.txt} +0 -0
|
@@ -136,33 +136,29 @@ export function devConfig(workspaceDir, entryFiles, title): WebpackConfigWithDev
|
|
|
136
136
|
},
|
|
137
137
|
},
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
setupMiddlewares: (middlewares, devServer) => {
|
|
140
|
+
if (!devServer) {
|
|
141
|
+
throw new Error('webpack-dev-server is not defined');
|
|
142
|
+
}
|
|
143
|
+
|
|
141
144
|
// Keep `evalSourceMapMiddleware` and `errorOverlayMiddleware`
|
|
142
145
|
// middlewares before `redirectServedPath` otherwise will not have any effect
|
|
143
146
|
// This lets us fetch source contents from webpack for the error overlay
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
// This service worker file is effectively a 'no-op' that will reset any
|
|
160
|
-
// previous service worker registered for the same host:port combination.
|
|
161
|
-
// We do this in development to avoid hitting the production cache if
|
|
162
|
-
// it used the same host and port.
|
|
163
|
-
// https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
|
|
164
|
-
// @ts-ignore
|
|
165
|
-
app.use(noopServiceWorkerMiddleware(publicUrlOrPath));
|
|
147
|
+
middlewares.push(
|
|
148
|
+
// @ts-ignore @types/wds mismatch
|
|
149
|
+
evalSourceMapMiddleware(devServer),
|
|
150
|
+
// This lets us open files from the runtime error overlay.
|
|
151
|
+
errorOverlayMiddleware(),
|
|
152
|
+
// Redirect to `PUBLIC_URL` or `homepage` from `package.json` if url not match
|
|
153
|
+
redirectServedPath(publicUrlOrPath),
|
|
154
|
+
// This service worker file is effectively a 'no-op' that will reset any
|
|
155
|
+
// previous service worker registered for the same host:port combination.
|
|
156
|
+
// We do this in development to avoid hitting the production cache if
|
|
157
|
+
// it used the same host and port.
|
|
158
|
+
// https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
|
|
159
|
+
noopServiceWorkerMiddleware(publicUrlOrPath)
|
|
160
|
+
);
|
|
161
|
+
return middlewares;
|
|
166
162
|
},
|
|
167
163
|
|
|
168
164
|
devMiddleware: {
|
|
Binary file
|
|
File without changes
|