Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Dec 20, 2024
1 parent 02a155d commit 76a7411
Show file tree
Hide file tree
Showing 10 changed files with 1,641 additions and 739 deletions.
45 changes: 23 additions & 22 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
export default {
// babel: {
// testOptions: {
// babelrc: false,
// plugins: [
// [
// "@babel/plugin-transform-react-jsx",
// {
// pragma: "xml",
// throwIfNamespace: false,
// },
// ],
// [
// "babel-plugin-jsx-pragmatic",
// {
// module: "@xmpp/xml",
// import: "xml",
// },
// ],
// ],
// },
// },
require: ["@babel/register/experimental-worker"],
babel: {
testOptions: {
babelrc: false,
plugins: [
[
"@babel/plugin-transform-react-jsx",
{
pragma: "xml",
throwIfNamespace: false,
},
],
[
"babel-plugin-jsx-pragmatic",
{
module: "@xmpp/xml",
import: "xml",
},
],
],
},
},
// require: ["@babel/register/experimental-worker.js"],
// workerThreads: false,
// nodeArguments: ["--loader=babel-register-esm"],
nodeArguments: ["--experimental-require-module"],
files: [
"packages/**/test.js",
"packages/**/test/*.js",
Expand Down
58 changes: 28 additions & 30 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
console.log("YEAH LA PECHE");

export default {
// presets: [
// [
// "@babel/preset-env",
// {
// targets: {
// ie: "11",
// },
// loose: true,
// },
// ],
// ],
plugins: [
// "@babel/plugin-transform-runtime",
// "babel-plugin-transform-async-to-promises",
// "@babel/plugin-proposal-object-rest-spread",

[
"@babel/plugin-transform-react-jsx",
{
pragma: "xml",
throwIfNamespace: false,
useBuiltIns: true,
},
],
module.exports = {
presets: [
[
"babel-plugin-jsx-pragmatic",
"@babel/preset-env",
{
module: "@xmpp/xml",
import: "xml",
targets: {
ie: "11",
},
loose: true,
},
],
],
plugins: [
"@babel/plugin-transform-runtime",
"babel-plugin-transform-async-to-promises",
"@babel/plugin-proposal-object-rest-spread",

// [
// "@babel/plugin-transform-react-jsx",
// {
// pragma: "xml",
// throwIfNamespace: false,
// useBuiltIns: true,
// },
// ],
// [
// "babel-plugin-jsx-pragmatic",
// {
// module: "@xmpp/xml",
// import: "xml",
// },
// ],
],
};
45 changes: 0 additions & 45 deletions bundle.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default [
},

rules: {
strict: ["error", "global"],
// strict: ["error", "global"],
"no-empty": ["error", { allowEmptyCatch: true }],
// "no-multi-assign": 0,
"func-names": ["error", "as-needed"],
Expand Down
Loading

0 comments on commit 76a7411

Please sign in to comment.