You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The top index.js imports both lower index.js and each of them have the content:
export{default}from'./tabs';
🤔 Expected Behavior
In the outputted file I expect the ids for "./sub/test" and "./sub/test.landscape" to be different, wich they even are when not using the build command.
For example:
{"./sub/test":3,"./sub/test.landscape":4}
😯 Current Behavior
Using the build command it outputs:
{"./sub/test":2,"./sub/test.landscape":2}
So the same id, that causes my code to break in production where in development it runs fine.
💁 Possible Solution
I only had a brief glance at the code debugging this, it might have something todo with the common ancestor search? Totally not sure on that one, sorry.
🔦 Context
As this is only a "beautification" for filenames (putting the main file of the subfolder as tabs.tsx for example instead of index.tsx, its not a big deal to work around. I still believe it to be a bug though.
💻 Code Sample
I have attached some example code, just run yarn; yarn build and check the dist/index.js for the faulty result.
Hi, I was just looking into this, and tried to reproduce it using your given example.
Using the Version in the example I can indeed verify that there is the described, buggy behavior.
However, using the newest version of parcel-bundler (1.9.7) I got: {"./sub/test":"C2SW","./sub/test.landscape":"BZFw"} which seems to be correct as far as I understand the issue.
I would therefore suggest closing this issue as being resolved. 😄
🎛 Configuration (.babelrc, package.json, cli command)
I have a directory structure of imports like so:
The top
index.js
imports both lowerindex.js
and each of them have the content:🤔 Expected Behavior
In the outputted file I expect the ids for
"./sub/test"
and"./sub/test.landscape"
to be different, wich they even are when not using thebuild
command.For example:
😯 Current Behavior
Using the build command it outputs:
So the same id, that causes my code to break in production where in development it runs fine.
💁 Possible Solution
I only had a brief glance at the code debugging this, it might have something todo with the common ancestor search? Totally not sure on that one, sorry.
🔦 Context
As this is only a "beautification" for filenames (putting the main file of the subfolder as
tabs.tsx
for example instead ofindex.tsx
, its not a big deal to work around. I still believe it to be a bug though.💻 Code Sample
I have attached some example code, just run
yarn; yarn build
and check thedist/index.js
for the faulty result.error_example.zip
The text was updated successfully, but these errors were encountered: