Skip to content

Commit

Permalink
Update Emglken for pre 0.7 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousdannii committed Dec 14, 2024
1 parent c227df8 commit b0bdec9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ const common_options = {
},
external: [
'*.woff2',
// Emglken now conditionally imports Node code, but esbuild complains about it
],
format: 'esm',
loader: {
Expand All @@ -176,7 +175,7 @@ const common_options = {
return {
contents: code.replace('var ENVIRONMENT_IS_WEB = typeof window == "object"', '')
.replace('var ENVIRONMENT_IS_WORKER = typeof importScripts == "function"', '')
.replace('var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string"', '')
.replace('var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"', '')
}
})
},
Expand Down
2 changes: 1 addition & 1 deletion src/upstream/emglken

0 comments on commit b0bdec9

Please sign in to comment.