kentcdodds/babel-plugin-preval

How to force recompile?

Open

#19 geöffnet am 16. Juli 2017

Auf GitHub ansehen
 (38 Kommentare) (8 Reaktionen) (0 zugewiesene Personen)TypeScript (48 Forks)github user discovery
docshelp wanted

Repository-Metriken

Stars
 (1.364 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

  • babel-plugin-preval version: 1.4.1
  • node version: 8.1.3
  • npm (or yarn) version: npm 5.2.0

Relevant code or config

const result = preval`
  const fs = require('fs');
  const path = require('path');
  const content = fs.readFileSync(path.join(__dirname, 'file.md'));
  module.exports = content.toString();
`;

console.log(result);

What you did: I ran the code above, to export contents of file.md.

What happened: when I modify file.md the result of preval didn't change when I tried to compile it again. Maybe I'm missing something?

Reproduction repository: demo

Problem description: preval probably doesn't see the reason to recompile because its tagged template literal didn't change.

Suggested solution: I don't know. 😅

Contributor Guide