gajus / babel-plugin-react-css-modules

Transforms styleName to className using compile time CSS module resolution.
Other
2.05k stars 162 forks source link

Bug in build-helper #232

Closed alvteren closed 5 years ago

alvteren commented 5 years ago

Hi, sorry for my English

In version since 5.0.0, I have a problem with building my app joxi_screenshot_1550750991796

When I watched file /dist/browser/getClassName.js. It contains code in line 8 var _optionsDefaults = _interopRequireDefault(require("./schemas/optionsDefaults"));

I think it has to contain ../schemas/optionsDefaults instead of ./schemas/optionsDefaults

I hope that I wrote clear and you can understand me.

gajus commented 5 years ago

@AlbertLucianto can you have a look at this one? Seems related to the recent changes.

alvteren commented 5 years ago

I think It related to changes on script "build-helper" in package.json

fazo96 commented 5 years ago

Running into this as well. Using 4.0.0 the bug does not happen

AlbertLucianto commented 5 years ago

@gajus sure. @alvteren you're right, it seems there's problem in the relative path on the build-helper. I'll look into this.

gajus commented 5 years ago

:tada: This issue has been resolved in version 5.1.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

alvteren commented 5 years ago

Thank you for fast reaction