Skip to content

Commit b3eedc6

Browse files
committed
Neo.Main: onDomContentLoaded() => adjust the logic for dist/esm #6720
1 parent 53ba60d commit b3eedc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class Main extends core.Base {
253253

254254
// we need different publicPath values for the main thread inside the webpack based dist envs,
255255
// depending on the hierarchy level of the app entry point
256-
if (config.environment !== 'development') {
256+
if (config.environment === 'dist/development' || config.environment === 'dist/production') {
257257
__webpack_require__.p = config.basePath.substring(6)
258258
}
259259

0 commit comments

Comments
 (0)