Skip to content

Commit

Permalink
fix: support for mini-program (closes #232)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujiulong committed Mar 12, 2024
1 parent 80a5900 commit b62a3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

if (process.env.NODE_ENV === 'production') {
if (typeof process === 'undefined' || process.env.NODE_ENV === 'production') {
module.exports = require('./dist/gcoord.cjs.prod.js');
} else {
module.exports = require('./dist/gcoord.cjs.js');
Expand Down

0 comments on commit b62a3b9

Please sign in to comment.