-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch voxel-texture@0.5.6 for the project I'm working on.
@parcel/optimizer-swc: 'delete' cannot be called on an identifier in strict mode
/home/jesse/AsterDroids/node_modules/voxel-texture/index.js:284:6
Here is the diff that solved my problem:
diff --git a/node_modules/voxel-texture/index.js b/node_modules/voxel-texture/index.js
index 15e9db5..91a3a8a 100644
--- a/node_modules/voxel-texture/index.js
+++ b/node_modules/voxel-texture/index.js
@@ -281,7 +281,8 @@ Texture.prototype.sprite = function(name, w, h, cb) {
]);
}, function() {
self._afterLoading();
- delete canvases;
+ //delete canvases;
+ canvases = null; // can't delete in strict mode
self.materials = self.materials.concat(textures);
cb(textures);
});This issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
No labels