Giter Site home page Giter Site logo

freezer00 / parcel-resolver-externals-excluder Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 175 KB

A parcelv2 plugin to exclude external files from being resolved

License: MIT License

TypeScript 100.00%
parcel-plugin parcelv2 deprecated deprecated-repository

parcel-resolver-externals-excluder's Introduction

parcel-resolver-externals-excluder

npm version

This Plugin for parcel v2 allows you to ignore files in resolving phase using a configuration in you package.json.

Installation

yarn add -D parcel-resolver-externals-excluder

npm install --save-dev parcel-resolver-externals-excluder

Usage

  • In your .parcelrc configure the resolver

  • NOTE: the default resolver should be in the list after this plugin, to use the default behavior for not excluded files.

    {
      "extends": "@parcel/config-default",
      "resolvers": ["parcel-resolver-externals-excluder", "..."]
    }
  • In your package.json configure the external files to be excluded

    {
      "externalsExcluder": [
        "your/absolute/paths", 
        "*.fileType",
        "yourFolders/**/*"
      ]
    }

parcel-resolver-externals-excluder's People

Contributors

freezer00 avatar

Watchers

 avatar  avatar

parcel-resolver-externals-excluder's Issues

Compatibility with Parcel 2.0.0 (final)

I get this error when trying to use the plugin with the final release of Parcel 2.0.0:

@parcel/core: The plugin "parcel-resolver-externals-excluder" is not
compatible with the current version of Parcel. Requires "2.0.0-rc.0"
but the current version is "2.0.0".

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.