Skip to content

Commit 5998d77

Browse files
fix: align build pipeline to tanstack, update deps (#245)
* fix: align build pipeline to tanstack, update deps * chore: remove node 12 add 18
1 parent 1d2aec9 commit 5998d77

12 files changed

+4422
-1807
lines changed

.browserslistrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Browsers we support
2+
Chrome >= 73
3+
Firefox >= 78
4+
Edge >= 79
5+
Safari >= 12.0
6+
iOS >= 12.0
7+
opera >= 53

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
node-version: [12, 14, 16]
27+
node-version: [14, 16, 18]
2828

2929
name: "Verify (Node ${{ matrix.node-version }})"
3030
steps:

babel.config.js

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
const { NODE_ENV, BABEL_ENV } = process.env;
2+
const cjs = NODE_ENV === "test" || BABEL_ENV === "commonjs";
3+
const es = BABEL_ENV === "es";
4+
const loose = true;
5+
6+
module.exports = {
7+
presets: [
8+
[
9+
"@babel/preset-env",
10+
{
11+
loose,
12+
modules: false,
13+
exclude: [
14+
"@babel/plugin-transform-regenerator",
15+
"@babel/plugin-transform-parameters",
16+
],
17+
},
18+
],
19+
"@babel/preset-typescript",
20+
],
21+
plugins: [
22+
cjs && ["@babel/transform-modules-commonjs", { loose }],
23+
es && ["babel-plugin-add-import-extension", { extension: "mjs" }],
24+
// no runtime for umd builds
25+
BABEL_ENV && [
26+
"@babel/transform-runtime",
27+
{
28+
version: require("./package.json").dependencies[
29+
"@babel/runtime"
30+
].replace(/^[^0-9]*/, ""),
31+
},
32+
],
33+
].filter(Boolean),
34+
};

0 commit comments

Comments
 (0)