Skip to content

Provide more minimal export #1223

@ashaffer

Description

@ashaffer

This isn't a huge deal because redux is pretty small, but i'm working on vdux, which currently wraps redux and only uses a small portion of the bundled API. At the moment, redux is my single largest dependency, and i'm only really using applyMiddleware and createStore.

Requiring only those files, like this:

import applyMiddleware from 'redux/lib/utils/applyMiddleware'
import createStore from 'redux/lib/createStore'

Reduces the size of the redux dep to about 1/4 of what it is normally. I can just do this for now, but it feels sort of unsupported and like something that may break in the future, unannounced. What i'd like is to be able to have an official thing like:

import {applyMiddleware, createStore} from 'redux/core'

So that people like me who aren't using the other helper functions can avoid the bloat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions