![]() When a dependency specifier references one of these module names, the builtin module is preferred over any module installed in node_modules with the same name. Parcel includes shims for many builtin Node.js modules, e.g. This could be a node_modules/lodash/clone.js file, for example. The above example resolves lodash within a node_modules directory as described above, and then resolves the clone module within the package rather than its main entrypoint. For example, a package may publish multiple entry points rather than only a single one. Package sub-paths #īare specifiers may also specify a sub-path within a package. See Package entries for more details on this process. Once a module directory is found, the package entry is resolved.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |