Problema ao usar com o create-react-app
Estou usando o Create-react-app ... ao importar o Grid, da o seguinte erro:
Module parse failed: /Users/joaopauloeffting/Documents/desenvolvimento/todo-list/node_modules/@entria/responsiveness/src/index.js Unexpected token (1:7) You may need an appropriate loader to handle this file type. | export Grid from './grid'; |
Vou tentar entender esse problema nessa finde ... achei a lib simples e bem útil. Quero usar :c haha
the problem is in these 3 lines: https://github.com/entria/responsiveness/blob/master/package.json#L15-L17
we wanna deliver src and lib on npm, so we can tree shake this module using webpack
maybe this could help https://github.com/indutny/webpack-common-shake for commonjs packages
@joaoeffting if you want use responsiveness before the solution be published, just change "module": "src/index.js" to "module": "lib/index.js" on package.json.
Is a kludge, but works for now. :sweat_smile: