babel-plugin-worklet
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -8,2 +8,3 @@ 'use strict' | ||
const parse = require('@babel/parser').parse | ||
const nodePath = require('path') | ||
@@ -618,4 +619,5 @@ const buildBindFunc = func => | ||
'FunctionDeclaration|FunctionExpression|ArrowFunctionExpression': { | ||
exit(path, state) { | ||
const fileName = state.file.opts.filename | ||
enter(path, state) { | ||
let fileName = state.file.opts.filename | ||
fileName = nodePath.relative(__dirname, fileName) | ||
processIfWorkletNode(t, path, fileName) | ||
@@ -622,0 +624,0 @@ }, |
{ | ||
"name": "babel-plugin-worklet", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Compile worklet function in miniprogram", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
19190
575