Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit b451dee

Browse files
committed
Fix process.env appearing in build output
1 parent 5cc5b08 commit b451dee

File tree

5 files changed

+73
-61
lines changed

5 files changed

+73
-61
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
For full details, see the documentation at [https://picmojs.com](https://picmojs.com).
44

5+
## [5.5.2] - 2022-08-17
6+
- Fixed `process.env` appearing in build output.
7+
58
## [5.5.1] - 2022-08-17
69
- Fixed issues with UMD build (however, different URL patterns are now required)
710
- Fixed bundling issue where core `picmo` packages was bundled with all add-on packages

integration/index.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77
<!-- <link rel="stylesheet" href="index.css" /> -->
88
<script src="lib/picmo.js"></script>
99
<script src="lib/picmo-popup.js"></script>
10-
<script src="lib/picmo-twemoji.js"></script>
10+
<!-- <script src="lib/picmo-twemoji.js"></script> -->
1111
<!-- <link rel="stylesheet" href="dist/index.css" /> -->
12+
13+
<!-- <script src="https://cdn.jsdelivr.net/npm/picmo@latest/dist/umd/index.js"></script> -->
14+
<!-- <script src="https://cdn.jsdelivr.net/npm/@picmo/popup-picker@latest/dist/umd/index.js"></script> -->
15+
16+
<!-- <script src="https://unpkg.com/picmo@latest/dist/umd/index.js"></script> -->
17+
<!-- <script src="https://unpkg.com/@picmo/popup-picker@latest/dist/umd/index.js"></script> -->
1218
</head>
1319

1420
<body>

integration/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const name = document.querySelector('#selection-name');
1010

1111
const trigger = document.querySelector('#trigger');
1212

13-
picmo.globalConfig.injectStyles = false;
13+
// picmo.globalConfig.injectStyles = false;
1414

1515
// const picker = picmo.createPicker({
1616
// rootElement: document.querySelector('#picker'),
1717
// renderer: new picmoTwemoji.TwemojiRenderer()
1818
// });
1919

2020
const picker = picmoPopup.createPopup({
21-
renderer: new picmoTwemoji.TwemojiRenderer()
21+
// renderer: new picmoTwemoji.TwemojiRenderer()
2222
}, {
2323
triggerElement: trigger,
2424
referenceElement: trigger,

integration/lib/picmo.js

+58-58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite.common.js

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export default function createConfig(basedir, moduleName) {
1414
};
1515

1616
return {
17+
define: {
18+
'process.env.NODE_ENV': JSON.stringify('production')
19+
},
1720
css: {
1821
postcss: {
1922
plugins: [

0 commit comments

Comments
 (0)