Skip to content

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

Merged
STRML merged 1 commit intoreact-grid-layout:masterfrom
erictooth:master
Dec 6, 2019
Merged

Add transform-inline-environment-variables Babel plugin#445
STRML merged 1 commit intoreact-grid-layout:masterfrom
erictooth:master

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.

2 participants