Open vitaminwater opened 9 years ago
I don't really understand the index.js generated by gulp:
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _mapper = require('./mapper'); var _mapper2 = _interopRequireDefault(_mapper); var _mapper3 = _interopRequireDefault(_mapper);
how is the middleware package exported here ?
and in my code, if I try this:
console.log(convention.middleware == convention.mapper);
I get true as output.
true
Which is not really what is intended in the source index.js:
import mapper from './mapper'; import middleware from './middleware'; export { mapper, middleware };
and forces to write:
(store) => (next) => (action) => next(convention.fromCCAtoFSA(action)),
I don't really understand the index.js generated by gulp:
how is the middleware package exported here ?
and in my code, if I try this:
I get
true
as output.Which is not really what is intended in the source index.js:
and forces to write: