Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transform-inline-environment-variables Babel plugin #445

Merged
merged 1 commit into from Dec 6, 2019
Merged

Add transform-inline-environment-variables Babel plugin #445

merged 1 commit into from Dec 6, 2019

Conversation

erictooth
Copy link
Contributor

The cjs and esm builds introduced 4.1.0 contain references to process.env.DRAGGABLE_DEBUG, which is not necessarily replaced by all bundlers out of the box.

My suggestion would be to do the same thing as your Webpack configuration, and rewrite process variables at build time using babel-plugin-transform-inline-environment-variables.

@STRML
Copy link
Collaborator

STRML commented Dec 6, 2019

Fair enough, thanks for the PR.

@STRML STRML merged commit 7390ad0 into react-grid-layout:master Dec 6, 2019
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.

None yet

2 participants