babel-plugin-reactylon 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +4 -2
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -166,8 +166,10 @@ export default declare((api) => {
166
166
  if (t.isMemberExpression(callee)) {
167
167
  const property = callee.property;
168
168
  if (t.isIdentifier(property)) {
169
- if (property.name in coreSideEffectsMap) {
170
- sideEffects.push(t.importDeclaration([], t.stringLiteral(coreSideEffectsMap[property.name])));
169
+ const sideEffectPath = coreSideEffectsMap[property.name];
170
+ // exclude assets folder where there are .wasm and relative .js files
171
+ if (sideEffectPath && !sideEffectPath.startsWith('@babylonjs/core/assets/')) {
172
+ sideEffects.push(t.importDeclaration([], t.stringLiteral(sideEffectPath)));
171
173
  // callPath.stop();
172
174
  }
173
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-reactylon",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Babel plugin to enable tree-shaking of Babylon.js classes within a Reactylon application.",
5
5
  "main": "build/index.js",
6
6
  "type": "module",