electron-userland / electron-compile

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
1.01k stars 99 forks source link

entry point files and their dependencies are version-sync'd #262

Open stepbeta opened 7 years ago

stepbeta commented 7 years ago

Some related issues and PR I could find: #208, #177.

I am experiencing this with .vue files of this sort:

<script src="./blah.js"></script>
<template><div>something</div></template>

If I modify something in the .js file nothing happens, but if I modify the .vue file then it's all recompiled. What's worse is that it seems that the versions of the two files are kept in "sync".

I.e. v1

export default {
  data() {
    return {
      text: 'hello'
    };
  }
};
<template><div>{{ text }}</div></template>

When I run this I see on screen "hello", that's fine. Now, v2

export default {
  data() {
    return {
      text: 'hello there'
    };
  }
};
<template><div>{{ text }}</div></template>

On screen I still have "hello", nothing changed. So, I change something in the .vue file

<template>
  <div>{{ text }}</div>
</template>

Now I've got "hello there" on screen, fine.

If I now revert modifications to the .vue file, then also the .js file will be reverted (not on disk, but on what's compiled).