{"action":"created","issue":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/2310","repository_url":"https://api.github.com/repos/parcel-bundler/parcel","labels_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/2310/labels{/name}","comments_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/2310/comments","events_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/2310/events","html_url":"https://github.com/parcel-bundler/parcel/issues/2310","id":383107286,"node_id":"MDU6SXNzdWUzODMxMDcyODY=","number":2310,"title":"Import single value (for security reasons)","user":{"login":"wookoouk","id":445964,"node_id":"MDQ6VXNlcjQ0NTk2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/445964?v=4","gravatar_id":"","url":"https://api.github.com/users/wookoouk","html_url":"https://github.com/wookoouk","followers_url":"https://api.github.com/users/wookoouk/followers","following_url":"https://api.github.com/users/wookoouk/following{/other_user}","gists_url":"https://api.github.com/users/wookoouk/gists{/gist_id}","starred_url":"https://api.github.com/users/wookoouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wookoouk/subscriptions","organizations_url":"https://api.github.com/users/wookoouk/orgs","repos_url":"https://api.github.com/users/wookoouk/repos","events_url":"https://api.github.com/users/wookoouk/events{/privacy}","received_events_url":"https://api.github.com/users/wookoouk/received_events","type":"User","site_admin":false},"labels":[{"id":663703613,"node_id":"MDU6TGFiZWw2NjM3MDM2MTM=","url":"https://api.github.com/repos/parcel-bundler/parcel/labels/:grey_question:%20%20Question","name":":grey_question:  Question","color":"0000ff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-21T12:59:43Z","updated_at":"2018-12-12T20:37:11Z","closed_at":null,"author_association":"NONE","body":"My project (a node web app) has a file (`config.js`) sitting at its root. It contains passwords, preferences etc. I would like to pull one of these into my front end js file that is being built with parcel but when it is built the entire config.js file copied to the output.\r\n\r\nFor example:\r\n```\r\nimport {apdexT} from '../../../config.js';\r\n```\r\nin my code I expect to see the val `apdexT` but I see the entire contents of `../../../config.js`\r\nIs there a way for the rest of the fie (that is not used in the file built with parcel) to be ignored?\r\n\r\nThank you in advance."},"comment":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/comments/446734934","html_url":"https://github.com/parcel-bundler/parcel/issues/2310#issuecomment-446734934","issue_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/2310","id":446734934,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjczNDkzNA==","user":{"login":"macklinu","id":2344137,"node_id":"MDQ6VXNlcjIzNDQxMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/2344137?v=4","gravatar_id":"","url":"https://api.github.com/users/macklinu","html_url":"https://github.com/macklinu","followers_url":"https://api.github.com/users/macklinu/followers","following_url":"https://api.github.com/users/macklinu/following{/other_user}","gists_url":"https://api.github.com/users/macklinu/gists{/gist_id}","starred_url":"https://api.github.com/users/macklinu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macklinu/subscriptions","organizations_url":"https://api.github.com/users/macklinu/orgs","repos_url":"https://api.github.com/users/macklinu/repos","events_url":"https://api.github.com/users/macklinu/events{/privacy}","received_events_url":"https://api.github.com/users/macklinu/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T20:37:11Z","updated_at":"2018-12-12T20:37:11Z","author_association":"NONE","body":"My use case feels similar to this issue (tree shaking for JS assets) but not quite since my example is importing a JSON asset. Should I track JSON asset tree-shaking in a separate ticket (don't see anything open for this at the moment)?"}}
{"actor":{"display_login":"macklinu"}}