Files
Laca-City/frontend/node_modules/next/dist/esm/server/config-utils.js
PhongPham c65cc97a33 🎯 MapView v2.0 - Global Deployment Ready
 MAJOR FEATURES:
• Auto-zoom intelligence với smart bounds fitting
• Enhanced 3D GPS markers với pulsing effects
• Professional route display với 6-layer rendering
• Status-based parking icons với availability indicators
• Production-ready build optimizations

🗺️ AUTO-ZOOM FEATURES:
• Smart bounds fitting cho GPS + selected parking
• Adaptive padding (50px) cho visual balance
• Max zoom control (level 16) để tránh quá gần
• Dynamic centering khi không có selection

🎨 ENHANCED VISUALS:
• 3D GPS marker với multi-layer pulse effects
• Advanced parking icons với status colors
• Selection highlighting với animation
• Dimming system cho non-selected items

🛣️ ROUTE SYSTEM:
• OpenRouteService API integration
• Multi-layer route rendering (glow, shadow, main, animated)
• Real-time distance & duration calculation
• Visual route info trong popup

📱 PRODUCTION READY:
• SSR safe với dynamic imports
• Build errors resolved
• Global deployment via Vercel
• Optimized performance

🌍 DEPLOYMENT:
• Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app
• Bundle size: 22.8 kB optimized
• Global CDN distribution
• HTTPS enabled

💾 VERSION CONTROL:
• MapView-v2.0.tsx backup created
• MAPVIEW_VERSIONS.md documentation
• Full version history tracking
2025-07-20 19:52:16 +07:00

179 lines
5.7 KiB
JavaScript

let installed = false;
export function loadWebpackHook() {
const { init: initWebpack } = require("next/dist/compiled/webpack/webpack");
if (installed) {
return;
}
installed = true;
initWebpack();
// hook the Node.js require so that webpack requires are
// routed to the bundled and now initialized webpack version
require("../server/require-hook").addHookAliases([
[
"webpack",
"next/dist/compiled/webpack/webpack-lib"
],
[
"webpack/package",
"next/dist/compiled/webpack/package"
],
[
"webpack/package.json",
"next/dist/compiled/webpack/package"
],
[
"webpack/lib/webpack",
"next/dist/compiled/webpack/webpack-lib"
],
[
"webpack/lib/webpack.js",
"next/dist/compiled/webpack/webpack-lib"
],
[
"webpack/lib/node/NodeEnvironmentPlugin",
"next/dist/compiled/webpack/NodeEnvironmentPlugin"
],
[
"webpack/lib/node/NodeEnvironmentPlugin.js",
"next/dist/compiled/webpack/NodeEnvironmentPlugin"
],
[
"webpack/lib/BasicEvaluatedExpression",
"next/dist/compiled/webpack/BasicEvaluatedExpression"
],
[
"webpack/lib/BasicEvaluatedExpression.js",
"next/dist/compiled/webpack/BasicEvaluatedExpression"
],
[
"webpack/lib/node/NodeTargetPlugin",
"next/dist/compiled/webpack/NodeTargetPlugin"
],
[
"webpack/lib/node/NodeTargetPlugin.js",
"next/dist/compiled/webpack/NodeTargetPlugin"
],
[
"webpack/lib/node/NodeTemplatePlugin",
"next/dist/compiled/webpack/NodeTemplatePlugin"
],
[
"webpack/lib/node/NodeTemplatePlugin.js",
"next/dist/compiled/webpack/NodeTemplatePlugin"
],
[
"webpack/lib/LibraryTemplatePlugin",
"next/dist/compiled/webpack/LibraryTemplatePlugin"
],
[
"webpack/lib/LibraryTemplatePlugin.js",
"next/dist/compiled/webpack/LibraryTemplatePlugin"
],
[
"webpack/lib/SingleEntryPlugin",
"next/dist/compiled/webpack/SingleEntryPlugin"
],
[
"webpack/lib/SingleEntryPlugin.js",
"next/dist/compiled/webpack/SingleEntryPlugin"
],
[
"webpack/lib/optimize/LimitChunkCountPlugin",
"next/dist/compiled/webpack/LimitChunkCountPlugin"
],
[
"webpack/lib/optimize/LimitChunkCountPlugin.js",
"next/dist/compiled/webpack/LimitChunkCountPlugin"
],
[
"webpack/lib/webworker/WebWorkerTemplatePlugin",
"next/dist/compiled/webpack/WebWorkerTemplatePlugin"
],
[
"webpack/lib/webworker/WebWorkerTemplatePlugin.js",
"next/dist/compiled/webpack/WebWorkerTemplatePlugin"
],
[
"webpack/lib/ExternalsPlugin",
"next/dist/compiled/webpack/ExternalsPlugin"
],
[
"webpack/lib/ExternalsPlugin.js",
"next/dist/compiled/webpack/ExternalsPlugin"
],
[
"webpack/lib/web/FetchCompileWasmTemplatePlugin",
"next/dist/compiled/webpack/FetchCompileWasmTemplatePlugin"
],
[
"webpack/lib/web/FetchCompileWasmTemplatePlugin.js",
"next/dist/compiled/webpack/FetchCompileWasmTemplatePlugin"
],
[
"webpack/lib/web/FetchCompileWasmPlugin",
"next/dist/compiled/webpack/FetchCompileWasmPlugin"
],
[
"webpack/lib/web/FetchCompileWasmPlugin.js",
"next/dist/compiled/webpack/FetchCompileWasmPlugin"
],
[
"webpack/lib/web/FetchCompileAsyncWasmPlugin",
"next/dist/compiled/webpack/FetchCompileAsyncWasmPlugin"
],
[
"webpack/lib/web/FetchCompileAsyncWasmPlugin.js",
"next/dist/compiled/webpack/FetchCompileAsyncWasmPlugin"
],
[
"webpack/lib/ModuleFilenameHelpers",
"next/dist/compiled/webpack/ModuleFilenameHelpers"
],
[
"webpack/lib/ModuleFilenameHelpers.js",
"next/dist/compiled/webpack/ModuleFilenameHelpers"
],
[
"webpack/lib/GraphHelpers",
"next/dist/compiled/webpack/GraphHelpers"
],
[
"webpack/lib/GraphHelpers.js",
"next/dist/compiled/webpack/GraphHelpers"
],
[
"webpack/lib/NormalModule",
"next/dist/compiled/webpack/NormalModule"
],
[
"webpack-sources",
"next/dist/compiled/webpack/sources"
],
[
"webpack-sources/lib",
"next/dist/compiled/webpack/sources"
],
[
"webpack-sources/lib/index",
"next/dist/compiled/webpack/sources"
],
[
"webpack-sources/lib/index.js",
"next/dist/compiled/webpack/sources"
],
[
"@babel/runtime",
"next/dist/compiled/@babel/runtime/package.json"
],
[
"@babel/runtime/package.json",
"next/dist/compiled/@babel/runtime/package.json"
]
].map(// Use dynamic require.resolve to avoid statically analyzable since they're only for build time
([request, replacement])=>[
request,
require.resolve(replacement)
]));
}
//# sourceMappingURL=config-utils.js.map