question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A lot ot "hot-update" files being generated

See original GitHub issue

Current Behavior

Whenever I run the app, a lot of hot-update.(json|js) files are generated and they remain there after closing the app/bundler. I am not even using hot reload. It’s turned off on Dev Settings

I can add them to .gitignore via *.hot-update.* and it’s a “solution”, but not ideal…

image

Expected Behavior

No clutter. Or at least in another folder.

Haul Configuration (webpack.haul.js)

import {createWebpackConfig} from "haul";
import { resolve } from 'path'

export default {
  webpack: env => {
    const config = createWebpackConfig({
      entry: `./src/index.ts`,
    })(env);

    config.module.rules = [
      {
        test: /\.tsx?$/,
        exclude: '/node_modules/',
        use: [
          {
            loader: 'babel-loader',
          },
          {
            loader: 'ts-loader',
          }
        ]
      },
      ...config.module.rules,
    ];

    config.resolve.extensions = [
      '.ts',
      '.tsx',
      `.${env.platform}.ts`,
      '.native.ts',
      `.${env.platform}.tsx`,
      '.native.tsx',
      ...config.resolve.extensions,
    ]

    config.resolve.alias = {
      ...config.resolve.alias,
      src: resolve(__dirname, 'src'),
    }

    return config;
  }
};

Your Environment

software version
Haul 1.0.0-rc.11
react-native 0.57.8
node v10.15.0
npm or yarn 1.13.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
apexskiercommented, Feb 11, 2019

Here’s a proposed fix for this - https://github.com/callstack/haul/pull/516

0reactions
thymikeecommented, Feb 17, 2019

Mind sending a PR? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why hot-update.json files are crowding my project directory
I am using Webpack 4.4.1 version. I was able to solve it by adding this to my webpack output config and adding the...
Read more >
Webpack's Hot Module Replacement Feature Explained
The Hot Module Replacement (HMR) feature was created to solve the above problems, and today it ... Hot update files under the Network...
Read more >
Manage render files in Final Cut Pro - Apple Support
In the Libraries sidebar in Final Cut Pro, select a library. Choose File > Delete Generated Library Files. In the window that appears,...
Read more >
Webpack & The Hot Module Replacement | by rajaraodv
Webpack uses HotModuleReplacementPlugin to generate a manifest (a JSON containing list of changed modules) and an update file(a JS with the ...
Read more >
Windows Update log files - Microsoft Learn
Learn about the Windows Update log files and how to merge and ... Generating WindowsUpdate.log; Windows Setup log files analysis using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found