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.
- package/build/index.js +4 -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
|
-
|
|
170
|
-
|
|
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