Skip to content

Fix import/export not getting transpiled in lib dir#384

Merged
eddywashere merged 2 commits intoreactstrap:masterfrom
balloob:feature/transpile-import-export-dist-dir
Apr 3, 2017
Merged

Fix import/export not getting transpiled in lib dir#384
eddywashere merged 2 commits intoreactstrap:masterfrom
balloob:feature/transpile-import-export-dist-dir

Conversation

@balloob
Copy link
Copy Markdown
Contributor

@balloob balloob commented Apr 2, 2017

Rollup conversion introduced a bug where Babel wouldn't transpile import/export to CommonJS syntax in the lib dir. This PR fixes it.

Report: #359 (comment)

@balloob balloob mentioned this pull request Apr 2, 2017
4 tasks
@TheSharpieOne
Copy link
Copy Markdown
Member

I would also point main in the package.json to the lib index.js as this would allow for better source maps and such.

@balloob
Copy link
Copy Markdown
Contributor Author

balloob commented Apr 2, 2017

Nah, the source maps are already off since some transpilation happens. Instead I have added source maps back to the UMD output in #386

@balloob
Copy link
Copy Markdown
Contributor Author

balloob commented Apr 2, 2017

Another issue with the lib dir is that if you import from it, you will also have to add the dependencies of Reactstrap to your own package.json (ie reactstrap-tether).

@TheSharpieOne
Copy link
Copy Markdown
Member

You shouldn't need to, reactstrap-tether is a dependency, not a peer or devDep. It will be downloaded when reactstrap is installed and things know how to resolve it.

@balloob
Copy link
Copy Markdown
Contributor Author

balloob commented Apr 3, 2017

@TheSharpieOne ah yes, you're right.

@eddywashere eddywashere merged commit 2e2a5da into reactstrap:master Apr 3, 2017
@balloob balloob deleted the feature/transpile-import-export-dist-dir branch April 3, 2017 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants