{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/8934","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/8934/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/8934/comments","events_url":"https://api.github.com/repos/babel/babel/issues/8934/events","html_url":"https://github.com/babel/babel/issues/8934","id":374625381,"node_id":"MDU6SXNzdWUzNzQ2MjUzODE=","number":8934,"title":"some import statements in files are not being transformed ","user":{"login":"lopugit","id":13629190,"node_id":"MDQ6VXNlcjEzNjI5MTkw","avatar_url":"https://avatars0.githubusercontent.com/u/13629190?v=4","gravatar_id":"","url":"https://api.github.com/users/lopugit","html_url":"https://github.com/lopugit","followers_url":"https://api.github.com/users/lopugit/followers","following_url":"https://api.github.com/users/lopugit/following{/other_user}","gists_url":"https://api.github.com/users/lopugit/gists{/gist_id}","starred_url":"https://api.github.com/users/lopugit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lopugit/subscriptions","organizations_url":"https://api.github.com/users/lopugit/orgs","repos_url":"https://api.github.com/users/lopugit/repos","events_url":"https://api.github.com/users/lopugit/events{/privacy}","received_events_url":"https://api.github.com/users/lopugit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-27T09:21:21Z","updated_at":"2018-10-27T12:46:33Z","closed_at":null,"author_association":"NONE","body":"I made a reproduction repo at \r\n\r\nhttps://github.com/lopudesigns/reproduction\r\n\r\n`git clone https://github.com/lopudesigns/reproduction && cd reproduction && npm i && build`\r\n\r\nthen if you go to `lib/testImport3/module1/files/test.js`\r\n\r\nit has \r\n`\r\n\"use strict\";\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.test1 = test1;\r\n\r\nfunction test1(test) {\r\n  console.log(test);\r\n}\r\n`\r\nwhich is what it should be, I can't reproduce the error.. but in my real repo where the issue is\r\n\r\nif you `git clone https://github.com/lopudesigns/wehelpjs && cd wehelpjs && npm i && npm run build`\r\n\r\nand go to `lib/auth/ecc/files/aes.js` you'll see\r\n\r\n`\r\nvar secureRandom = require('secure-random');\r\n\r\nvar ByteBuffer = require('bytebuffer');\r\n\r\nvar crypto = require('browserify-aes');\r\n\r\nvar assert = require('assert');\r\n\r\nvar PublicKey = require('./key_public');\r\n\r\nvar PrivateKey = require('./key_private');\r\n\r\nvar hash = require('./hash');\r\n\r\nconst Long = ByteBuffer.Long;\r\n/**\r\n    Spec: http://localhost:3002/steem/@dantheman/how-to-encrypt-a-memo-when-transferring-steem\r\n    @throws {Error|TypeError} - \"Invalid Key, ...\"\r\n    @arg {PrivateKey} private_key - required and used for decryption\r\n    @arg {PublicKey} public_key - required and used to calculate the shared secret\r\n    @arg {string} [nonce = uniqueNonce()] - assigned a random unique uint64\r\n\r\n    @return {object}\r\n    @property {string} nonce - random or unique uint64, provides entropy when re-using the same private/public keys.\r\n    @property {Buffer} message - Plain text message\r\n    @property {number} checksum - shared secret checksum\r\n*/\r\n\r\nexport function encrypt(private_key, public_key, message, nonce = uniqueNonce()) {\r\n  return crypt(private_key, public_key, nonce, message);\r\n}\r\n`\r\n\r\nwhich means it isn't being transformed properly\r\n\r\nother files are being transformed properly.\r\n\r\nIt seems that the problem is restricted to the auth/ecc and auth/serializer folders but I've been trying to fix this for 48 hours to no avail\r\n\r\nthe .babelrc files are configured the same, @babel/deps are the same in both repo's\r\n\r\nI can't figure it out"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/433617418","html_url":"https://github.com/babel/babel/issues/8934#issuecomment-433617418","issue_url":"https://api.github.com/repos/babel/babel/issues/8934","id":433617418,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzYxNzQxOA==","user":{"login":"nicolo-ribaudo","id":7000710,"node_id":"MDQ6VXNlcjcwMDA3MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/7000710?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolo-ribaudo","html_url":"https://github.com/nicolo-ribaudo","followers_url":"https://api.github.com/users/nicolo-ribaudo/followers","following_url":"https://api.github.com/users/nicolo-ribaudo/following{/other_user}","gists_url":"https://api.github.com/users/nicolo-ribaudo/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolo-ribaudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolo-ribaudo/subscriptions","organizations_url":"https://api.github.com/users/nicolo-ribaudo/orgs","repos_url":"https://api.github.com/users/nicolo-ribaudo/repos","events_url":"https://api.github.com/users/nicolo-ribaudo/events{/privacy}","received_events_url":"https://api.github.com/users/nicolo-ribaudo/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T12:46:33Z","updated_at":"2018-10-27T12:46:33Z","author_association":"MEMBER","body":"If you want your config to be applied to nested packages, you can use `babel.config.js` instead of `.babelrc`"}}
{"actor":{"display_login":"nicolo-ribaudo"}}