infernojs / inferno

:fire: An extremely fast, React-like JavaScript library for building modern user interfaces
https://infernojs.org
MIT License
16.1k stars 635 forks source link

Add THIRD_PARTY_LIBRARY flag #1645

Closed dxvladislavvolkov closed 1 year ago

dxvladislavvolkov commented 1 year ago

Before submitting a PR please:


PR Template

Objective We use your library for our DevExtreme components. Now our customers get the warning: "You are running production build of Inferno in development mode. Use dev:module entry point." This changes will avoid our library from making the warning. We will set the flag in our components

Closes Issue

It closes Issue #...

Havunen commented 1 year ago

Eh, why not just change to use the dev:module entry point? Based on the development or production build target? This change is not something what inferno as library should do for all possible applications or build tools

Havunen commented 1 year ago

Also if your customers see that warning it means you are building inferno incorrectly and it will be slow(er) than it should be. Removing the message is not correct way to fix the issue