@kaliber/build 0.0.132-beta.1 → 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,17 +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
- '@babel/plugin-proposal-class-properties',
74
- ['@babel/plugin-proposal-decorators', { legacy: true }],
75
- '@babel/plugin-proposal-export-namespace-from',
76
- '@babel/plugin-proposal-nullish-coalescing-operator',
77
- '@babel/plugin-proposal-object-rest-spread',
78
- '@babel/plugin-proposal-optional-chaining',
79
73
  '@babel/syntax-dynamic-import',
80
- '@babel/plugin-transform-named-capturing-groups-regex',
81
- '@babel/plugin-transform-template-literals',
74
+ '@babel/syntax-optional-chaining',
75
+ ['@babel/proposal-decorators', { legacy: true }],
76
+ '@babel/proposal-class-properties',
77
+ '@babel/proposal-object-rest-spread',
78
+ '@babel/transform-async-to-generator',
79
+ ['@babel/transform-runtime', {
80
+ 'helpers': false,
81
+ 'regenerator': true
82
+ }]
82
83
  ]
83
84
  }
84
85
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.132-beta.1",
2
+ "version": "0.0.132",
3
3
  "name": "@kaliber/build",
4
4
  "description": "Zero configuration, opinionated webpack / react build setup",
5
5
  "scripts": {
@@ -19,14 +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-export-namespace-from": "^7.18.9",
23
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
24
- "@babel/plugin-proposal-object-rest-spread": "^7.19.4",
25
- "@babel/plugin-proposal-optional-chaining": "^7.18.9",
22
+ "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
26
23
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
27
- "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1",
28
- "@babel/plugin-transform-template-literals": "^7.18.9",
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",
29
28
  "@babel/preset-react": "^7.16.7",
29
+ "@babel/runtime": "^7.11.2",
30
30
  "@kaliber/config": "^0.0.8",
31
31
  "@kaliber/eslint-plugin": "*",
32
32
  "@kaliber/safe-json-stringify": "^1.1.0",