@@ -0,0 +1,7 @@
+if (process.env.DATE_BACKEND === 'date-fns') {
+  console.log('Using date backend: date-fns')
+  module.exports = require('./date-fns')
+} else {
+  console.log('Using date backend: moment')
+  module.exports = require('./moment')
+}
To be fair, I have not checked if that works as intended with webpack. What you'd want is that the code in the other branch is not added to the bundle.