Closed fragsalat closed 6 years ago
@huochunpeng should this be resolved with auto tracing ?
Yes. It is part of nodejs compatibility I implemented there.
What does this mean? Should I just update all packages and it should work? Will it be fixed with a future release or should it already work and I made something wrong?
It means it will be fixed after aurelia/cli#862 got released.
Muaha that's great :) Thanks men :)
Can be closed
:+1:
As I think this was by intent... I'm submitting a feature request
Please tell us about your environment:
Operating System: Ubuntu 18.04
Node Version: 10.7.0
NPM Version: 6.1.0
Loader RequireJS
Browser: all
Language: all
Current behavior: A package like @material-ui/code requires folders which contains a index.js and those are not recognized by the bundler.
file1.js
Expected/desired behavior:
What is the expected behavior? When requiring a path the bundler should check if there is an index.js file when the required path is a folder.
What is the motivation / use case for changing the behavior? The bundler should / could behave like NodeJS require as there are many libraries out there which uses this way of requiring.