@kaliber/build 0.0.128 → 0.0.130

Sign up to get free protection for your applications and to get access to all the features.
package/lib/build.js CHANGED
@@ -48,7 +48,14 @@ const templateRenderers = require('./getTemplateRenderers')
48
48
 
49
49
  const isProduction = process.env.NODE_ENV === 'production'
50
50
 
51
- const { kaliber: { compileWithBabel: userDefinedcompileWithBabel = [], publicPath = '/', symlinks = true } = {} } = require('@kaliber/config')
51
+ const {
52
+ kaliber: {
53
+ compileWithBabel: userDefinedcompileWithBabel = [],
54
+ publicPath = '/',
55
+ symlinks = true,
56
+ webpackLoaders: userDefinedWebpackLoaders = [],
57
+ } = {}
58
+ } = require('@kaliber/config')
52
59
 
53
60
  const recognizedTemplates = Object.keys(templateRenderers)
54
61
 
@@ -272,6 +279,8 @@ module.exports = function build({ watch }) {
272
279
  loaders: [rawLoader]
273
280
  },
274
281
 
282
+ ...userDefinedWebpackLoaders,
283
+
275
284
  {
276
285
  type: 'json',
277
286
  test: /\.json$/,
package/lib/polyfill.js CHANGED
@@ -4,5 +4,5 @@ export default function polyfill(features = []) {
4
4
  const src = isProduction
5
5
  ? `https://cdn.polyfill.io/v3/polyfill.min.js?rum=0&unknown=polyfill&flags=gated&features=${features.join(',')}`
6
6
  : `https://cdn.polyfill.io/v3/polyfill.js?rum=0&unknown=polyfill&flags=gated&features=${features.join(',')}`
7
- return <script defer src={src} crossOrigin="anonymous" />
7
+ return <script src={src} crossOrigin="anonymous" />
8
8
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.128",
2
+ "version": "0.0.130",
3
3
  "name": "@kaliber/build",
4
4
  "description": "Zero configuration, opinionated webpack / react build setup",
5
5
  "scripts": {