diff --git a/lib/parsers/pluginSyntaxJsx.js b/lib/parsers/pluginSyntaxJsx.js index 3a41a25..0ce07bb 100644 --- a/lib/parsers/pluginSyntaxJsx.js +++ b/lib/parsers/pluginSyntaxJsx.js @@ -1,11 +1,3 @@ -const path = require("path"); - -// Ajuste para usar o caminho absoluto do preset-react -const pluginSyntaxJsx = path.join( - __dirname, - "../../", - "node_modules", - "@babel/plugin-syntax-jsx", -); +const pluginSyntaxJsx = require("@babel/plugin-syntax-jsx"); module.exports = pluginSyntaxJsx; diff --git a/lib/parsers/presetEnv.js b/lib/parsers/presetEnv.js index ba9acdb..0cabc4a 100644 --- a/lib/parsers/presetEnv.js +++ b/lib/parsers/presetEnv.js @@ -1,11 +1,3 @@ -const path = require("path"); - -// Ajuste para usar o caminho absoluto do preset-react -const presetEnvPath = path.join( - __dirname, - "../../", - "node_modules", - "@babel/preset-env", -); +const presetEnvPath = require("@babel/preset-env"); module.exports = presetEnvPath; diff --git a/lib/parsers/presetReactPath.js b/lib/parsers/presetReactPath.js index ce61fd3..19fe55e 100644 --- a/lib/parsers/presetReactPath.js +++ b/lib/parsers/presetReactPath.js @@ -1,11 +1,3 @@ -const path = require("path"); - -// Ajuste para usar o caminho absoluto do preset-react -const presetReactPath = path.join( - __dirname, - "../../", - "node_modules", - "@babel/preset-react", -); +const presetReactPath = require("@babel/preset-react"); module.exports = presetReactPath; diff --git a/lib/parsers/presetTypescriptPath.js b/lib/parsers/presetTypescriptPath.js index cd4debb..b0e25e6 100644 --- a/lib/parsers/presetTypescriptPath.js +++ b/lib/parsers/presetTypescriptPath.js @@ -1,11 +1,3 @@ -const path = require("path"); - -// Ajuste para usar o caminho absoluto do preset-react -const presetTypescriptPath = path.join( - __dirname, - "../../", - "node_modules", - "@babel/preset-typescript", -); +const presetTypescriptPath = require("@babel/preset-typescript"); module.exports = presetTypescriptPath; diff --git a/package.json b/package.json index 0a6b355..90616e7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "alem", "description": "Create web3 applications for NEAR BOS with a focus on performance and friendly development.", - "version": "1.0.0-beta.6", + "version": "1.0.0-beta.7", "main": "main.js", "types": "index.d.ts", "author": "Wenderson Pires - wendersonpires.near",