We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__DEV__
1 parent 9007fe0 commit 8e1eb00Copy full SHA for 8e1eb00
examples/js/index.html
@@ -13,6 +13,7 @@
13
<div id="autocomplete"></div>
14
</div>
15
16
+ <script src="index.ts"></script>
17
<script src="app.ts"></script>
18
</body>
19
</html>
examples/js/index.ts
@@ -0,0 +1,5 @@
1
+// Parcel picks the `source` field of the monorepo packages and thus doesn't
2
+// apply the Babel config to replace our `__DEV__` global expression.
3
+// We therefore need to manually override it in the example app.
4
+// See https://twitter.com/devongovett/status/1134231234605830144
5
+(global as any).__DEV__ = process.env.NODE_ENV !== 'production';
0 commit comments