, @diegopartes.
, - .
:
Web
webpack.config.js . webpack.config.js , :
const path = require('path');
const sharedPath = path.join(__dirname, 'shared');
const config = {
...
resolve: {
root: [sharedPath],
},
...
}
. ,
- shared
-- reducers
-- actions
import { addTodo } from 'actions/todos'
, :
root, package.json { "name": "FOLDER_NAME" }. , , -:
- shared
package.json:
{
"name": "actions"
}
, -, .
node_modules, package.json - . webpack.config React Native, .