mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #11922 from meteor/remove-production-replacable-check
Fix issues with HMR and meteor build --debug
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
if (!process.env.METEOR_HMR_SECRET) {
|
||||
console.log('Restart Meteor to enable hot module replacement.');
|
||||
} else {
|
||||
// METEOR_PARENT_PID
|
||||
if (process.env.METEOR_HMR_SECRET) {
|
||||
__meteor_runtime_config__._hmrSecret = process.env.METEOR_HMR_SECRET;
|
||||
} else if (process.env.METEOR_PARENT_PID) {
|
||||
// if METEOR_PARENT_PID isn't set, then the app isn't being run by the meteor
|
||||
// tool and restarting won't enable HRM.
|
||||
console.log('Restart Meteor to enable hot module replacement.');
|
||||
}
|
||||
|
||||
@@ -929,13 +929,7 @@ function runWebAppServer() {
|
||||
versionReplaceable: () =>
|
||||
WebAppHashing.calculateClientHash(
|
||||
manifest,
|
||||
(_type, replaceable) => {
|
||||
if (Meteor.isProduction && replaceable) {
|
||||
throw new Error('Unexpected replaceable file in production');
|
||||
}
|
||||
|
||||
return replaceable;
|
||||
},
|
||||
(_type, replaceable) => replaceable,
|
||||
configOverrides
|
||||
),
|
||||
cordovaCompatibilityVersions: programJson.cordovaCompatibilityVersions,
|
||||
|
||||
Reference in New Issue
Block a user