Skip to content

Commit 2c7abb1

Browse files
authored
Ensure code is compatible with node 12 (#543)
1 parent 23ea462 commit 2c7abb1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.changeset/odd-suits-call.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@vanilla-extract/babel-plugin': patch
3+
'@vanilla-extract/esbuild-plugin': patch
4+
'@vanilla-extract/integration': patch
5+
'@vanilla-extract/next-plugin': patch
6+
'@vanilla-extract/vite-plugin': patch
7+
'@vanilla-extract/webpack-plugin': patch
8+
---
9+
10+
Ensure code is compatible with node 12

babel.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
module.exports = {
2-
presets: ['@babel/preset-typescript', '@babel/preset-react'],
2+
presets: [
3+
['@babel/preset-env', { targets: { node: 12 } }],
4+
'@babel/preset-typescript',
5+
'@babel/preset-react',
6+
],
37

48
overrides: [
59
{

0 commit comments

Comments
 (0)