Git Product home page Git Product logo

Comments (4)

sokra avatar sokra commented on August 17, 2024

Does this implement defunctzombie's browser field spec?

yes

If so, am I correct in understanding that enhanced-resolve is basically similar to browser-resolve, but with the added ability to provide your own filesystem to mediate/handle disk access?

yes, similar. Plugin based.

from enhanced-resolve.

mark-slepkov avatar mark-slepkov commented on August 17, 2024

Hello friends. I'm using bower in my projects and I writing a bower modules which will be import in my projects.
Usually it is a simple modules which is have one entry point. And my bower.json looks like
{..., main: 'src/entry_point.js', ..}
And my webpack config have the strings:

plugins: [
                new webpack.ResolverPlugin([
                            new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin("bower.json", ["main"])
                        ],
                        ["normal", "loader"]
                )
            ]

In a code of my project I write something like: require('my_awesome_library')

But now I want to write a big module which will have several entry points and I want to write:

var fun_library = require('my_awesome_module/library_for_fun')
var jafl = require('my_awesome_module/just_another_fine_library')

and so on.
how can I plug this module in webpack config? Please help.

from enhanced-resolve.

grrowl avatar grrowl commented on August 17, 2024

👍

Can't find any documentation about a migration path from Webpack v1 -> v2. I'm trying to incorporate the (component-resolver-webpack)[https://github.com/toptal/component-resolver-webpack/] plugin but there's no documentation about it.

from enhanced-resolve.

mikesherov avatar mikesherov commented on August 17, 2024

Thanks for contributing, everyone! I'm going to consider this issue closed for now. If there are any specific documentation asks, please feel free to open a new issue (or even better a pull request on README).

from enhanced-resolve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.