Skip to content

Commit

Permalink
fix babel presets
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Apr 3, 2024
1 parent 0b5037c commit 2c27dc9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 37 deletions.
10 changes: 1 addition & 9 deletions lib/parsers/pluginSyntaxJsx.js
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 1 addition & 9 deletions lib/parsers/presetEnv.js
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 1 addition & 9 deletions lib/parsers/presetReactPath.js
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 1 addition & 9 deletions lib/parsers/presetTypescriptPath.js
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 2c27dc9

Please sign in to comment.