Skip to content

awesome-reactivesearch/webpack-tree-shaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactiveSearch Webpack Tree Shaking Example

This setup uses babel-plugin-direct-import so your final bundle includes only whats necessary. This is a good option if your project isn't setup with tree shaking. Your .babelrc should look like this:

{
    "presets": [
        "react"
    ],
    "plugins": [
        [
          "direct-import",
          [
            "@appbaseio/reactivesearch",
            {
              "name": "@appbaseio/reactivesearch",
              "indexFile": "@appbaseio/reactivesearch/lib/index.es.js"
            }
          ]
        ]
    ]
}

For more details check out the docs.

About

Minimal weback setup for tree shaking with reactivesearch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published