Skip to content

Commit

Permalink
fix: align build pipeline to tanstack, update deps (#245)
Browse files Browse the repository at this point in the history
* fix: align build pipeline to tanstack, update deps

* chore: remove node 12 add 18
  • Loading branch information
DamianOsipiuk authored Sep 18, 2022
1 parent 1d2aec9 commit 5998d77
Show file tree
Hide file tree
Showing 12 changed files with 4,422 additions and 1,807 deletions.
7 changes: 7 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Browsers we support
Chrome >= 73
Firefox >= 78
Edge >= 79
Safari >= 12.0
iOS >= 12.0
opera >= 53
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
node-version: [12, 14, 16]
node-version: [14, 16, 18]

name: "Verify (Node ${{ matrix.node-version }})"
steps:
Expand Down
34 changes: 34 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const { NODE_ENV, BABEL_ENV } = process.env;
const cjs = NODE_ENV === "test" || BABEL_ENV === "commonjs";
const es = BABEL_ENV === "es";
const loose = true;

module.exports = {
presets: [
[
"@babel/preset-env",
{
loose,
modules: false,
exclude: [
"@babel/plugin-transform-regenerator",
"@babel/plugin-transform-parameters",
],
},
],
"@babel/preset-typescript",
],
plugins: [
cjs && ["@babel/transform-modules-commonjs", { loose }],
es && ["babel-plugin-add-import-extension", { extension: "mjs" }],
// no runtime for umd builds
BABEL_ENV && [
"@babel/transform-runtime",
{
version: require("./package.json").dependencies[
"@babel/runtime"
].replace(/^[^0-9]*/, ""),
},
],
].filter(Boolean),
};
Loading

0 comments on commit 5998d77

Please sign in to comment.