Skip to content

Conversation

@usefulthink
Copy link
Contributor

Changed the implementation of the dev-mode to be compatible with how vite handles dependencies using process.env.NODE_ENV, also adds a basic suite of integration tests to check with vite, webpack and rollup that the dev-mode works as expected.

Fixes #1112

…ecks

Refactor the build process to remove the custom `__DEV__` global declaration and replace it with a more standard `process.env.NODE_ENV !== 'production'` pattern. Adjusted rollup configuration accordingly.
Introduce bundler-specific test setups to ensure `@googlemaps/js-api-loader` works seamlessly with Vite, Webpack, and Rollup. Includes build scripts, configurations, and validation for production and development modes.
@usefulthink usefulthink requested a review from anglarett October 24, 2025 13:43
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.

Use of process.env.NODE_ENV in ESM bundle

1 participant