Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

The main.js hash always changed in every time to compile. (deepLinks) #1490

@fatesigner

Description

@fatesigner

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Short description of the problem:

The first compilation is inconsistent with the main.js compiled the second time, but the source file has not changed.

What behavior are you expecting?

Each compilation causes main.js to change its hash, Even if the file is not changed,
I found the difference in main.js that it was IonicModule.forRoot links array's order has changed.
The first in main.js:
[
{
"loadChildren": "../components/payment/payment.module#PaymentModule",
"name": "PaymentComponent",
"segment": "payment",
"priority": "low",
"defaultHistory": []
},
{
"loadChildren": "../pages/register/register.module#RegisterPageModule",
"name": "RegisterPage",
"segment": "register",
"priority": "low",
"defaultHistory": []
}
]
The second time in main.js:
[
{
"loadChildren": "../pages/register/register.module#RegisterPageModule",
"name": "RegisterPage",
"segment": "register",
"priority": "low",
"defaultHistory": []
},
{
"loadChildren": "../components/payment/payment.module#PaymentModule",
"name": "PaymentComponent",
"segment": "payment",
"priority": "low",
"defaultHistory": []
}
]
.
Steps to reproduce:
npm run ionic-app-scripts build

insert any relevant code between the above and below backticks 

Which @ionic/app-scripts version are you using?

3.2.0
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions