@kaliber/build 0.0.132-beta.0 → 0.0.132

Sign up to get free protection for your applications and to get access to all the features.
package/.eslintrc CHANGED
@@ -244,7 +244,15 @@
244
244
  "react/jsx-tag-spacing": "warn",
245
245
  "react/jsx-uses-react": "warn",
246
246
  "react/jsx-uses-vars": "warn",
247
- // "react/jsx-wrap-multilines": "warn", // needs better config to fit our needs
247
+ "react/jsx-wrap-multilines": ["warn", {
248
+ "declaration": "parens-new-line",
249
+ "assignment": "parens-new-line",
250
+ "return": "parens-new-line",
251
+ "arrow": "ignore",
252
+ "condition": "ignore",
253
+ "logical": "ignore",
254
+ "prop": "ignore"
255
+ }],
248
256
  "react/no-danger-with-children": "warn",
249
257
  "react/no-deprecated": "warn",
250
258
  "react/no-direct-mutation-state": "warn",
package/lib/build.js CHANGED
@@ -68,13 +68,18 @@ const babelLoader = {
68
68
  cacheDirectory: './.babelcache/',
69
69
  cacheCompression: false,
70
70
  babelrc: false, // this needs to be false, any other value will cause .babelrc to interfere with these settings
71
- presets: ['@babel/preset-react'],
71
+ presets: [['@babel/preset-env', { modules: false }], '@babel/preset-react'],
72
72
  plugins: [
73
73
  '@babel/syntax-dynamic-import',
74
74
  '@babel/syntax-optional-chaining',
75
75
  ['@babel/proposal-decorators', { legacy: true }],
76
76
  '@babel/proposal-class-properties',
77
- '@babel/plugin-proposal-nullish-coalescing-operator',
77
+ '@babel/proposal-object-rest-spread',
78
+ '@babel/transform-async-to-generator',
79
+ ['@babel/transform-runtime', {
80
+ 'helpers': false,
81
+ 'regenerator': true
82
+ }]
78
83
  ]
79
84
  }
80
85
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.132-beta.0",
2
+ "version": "0.0.132",
3
3
  "name": "@kaliber/build",
4
4
  "description": "Zero configuration, opinionated webpack / react build setup",
5
5
  "scripts": {
@@ -19,11 +19,14 @@
19
19
  "@babel/eslint-parser": "^7.16.5",
20
20
  "@babel/plugin-proposal-class-properties": "^7.10.4",
21
21
  "@babel/plugin-proposal-decorators": "^7.10.5",
22
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
23
22
  "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
24
23
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
25
24
  "@babel/plugin-syntax-optional-chaining": "^7.8.3",
25
+ "@babel/plugin-transform-async-to-generator": "^7.10.4",
26
+ "@babel/plugin-transform-runtime": "^7.11.5",
27
+ "@babel/preset-env": "^7.11.5",
26
28
  "@babel/preset-react": "^7.16.7",
29
+ "@babel/runtime": "^7.11.2",
27
30
  "@kaliber/config": "^0.0.8",
28
31
  "@kaliber/eslint-plugin": "*",
29
32
  "@kaliber/safe-json-stringify": "^1.1.0",