@kaliber/build 0.0.148 → 0.0.150

Sign up to get free protection for your applications and to get access to all the features.
package/lib/build.js CHANGED
@@ -53,6 +53,7 @@ const {
53
53
  publicPath = '/',
54
54
  symlinks = true,
55
55
  webpackLoaders: userDefinedWebpackLoaders = [],
56
+ webpackResolveAliases: userWebpackResolveAliases = {},
56
57
  cssNativeCustomProperties = false,
57
58
  } = {}
58
59
  } = require('@kaliber/config')
@@ -95,6 +96,7 @@ const babelLoader = {
95
96
  '@babel/syntax-dynamic-import',
96
97
  '@babel/plugin-transform-named-capturing-groups-regex',
97
98
  '@babel/plugin-transform-template-literals',
99
+ '@babel/plugin-transform-logical-assignment-operators',
98
100
  ]
99
101
  }
100
102
  }
@@ -275,6 +277,7 @@ module.exports = function build({ watch }) {
275
277
  modules: ['node_modules'],
276
278
  plugins: [absolutePathResolverPlugin(srcDir), fragmentResolverPlugin()],
277
279
  symlinks,
280
+ alias: userWebpackResolveAliases,
278
281
  }
279
282
  }
280
283
 
package/lib/polyfill.js CHANGED
@@ -2,7 +2,7 @@ const isProduction = process.env.NODE_ENV === 'production'
2
2
 
3
3
  export default function polyfill(features = []) {
4
4
  const src = isProduction
5
- ? `https://cdn.polyfill.io/v3/polyfill.min.js?rum=0&unknown=polyfill&flags=gated&features=${features.join(',')}`
6
- : `https://cdn.polyfill.io/v3/polyfill.js?rum=0&unknown=polyfill&flags=gated&features=${features.join(',')}`
5
+ ? `https://polyfill-fastly.io/v3/polyfill.min.js?features=${features.join(',')}&flags=gated&rum=0&unknown=polyfill`
6
+ : `https://polyfill-fastly.io/v3/polyfill.js?features=${features.join(',')}&flags=gated&rum=0&unknown=polyfill`
7
7
  return <script src={src} crossOrigin="anonymous" />
8
8
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.148",
2
+ "version": "0.0.150",
3
3
  "name": "@kaliber/build",
4
4
  "description": "Zero configuration, opinionated webpack / react build setup",
5
5
  "scripts": {
@@ -24,6 +24,7 @@
24
24
  "@babel/plugin-proposal-object-rest-spread": "^7.19.4",
25
25
  "@babel/plugin-proposal-optional-chaining": "^7.18.9",
26
26
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
27
+ "@babel/plugin-transform-logical-assignment-operators": "^7.24.1",
27
28
  "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1",
28
29
  "@babel/plugin-transform-template-literals": "^7.18.9",
29
30
  "@babel/preset-react": "^7.16.7",