Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Feature: Infer local non-JS read dependencies (fs.read, __dirname, etc.) #16

Open
ryan-roemer opened this issue Mar 5, 2020 · 0 comments
Labels
feature New feature or request

Comments

@ryan-roemer
Copy link
Member

We have dependency code like:

var STYLESHEET = fs.readFileSync(path.join(__dirname, '/public/style.css'), 'utf8')
var TEMPLATE = fs.readFileSync(path.join(__dirname, '/public/error.html'),

where we could infer some combination of

  • fs.read*
  • path.*
  • __dirname

Indicates reading a non-JS-imported file.

@ryan-roemer ryan-roemer added the feature New feature or request label Mar 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant