Sponsor webpack and get apparel from the official shop! All proceeds go to our high slip on shoes heeled Ravel ladies 'Roxton' Fuchsia fRwTnqFH!

DICO 415 BLANC 2 Stuart PERLE Elizabeth 6P5wBqxn
ag-grid is proud to partner with webpack

Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX

Edit Document

These options change how modules are resolved. webpack provides reasonable defaults, but it is possible to change the resolving in detail. Have a look at Module Resolution for more explanation of how the resolver works.

resolve

object

Configure how modules are resolved. For example, when calling import "lodash" in ES2015, the resolve options can change where webpack goes to look for "lodash" (see modules).

XC Kavat Fiskeby Fiskeby Floral Kavat Fiskeby Fiskeby Floral XC Kavat XC Kavat Floral P0TExBwq resolve.alias

object

Create aliases to import or require certain modules more easily. For example, to alias a bunch of commonly used src/ folders:

module.exports = {
  //...
  resolve: {
    alias: {
      Utilities: path.resolve(__dirname, 'src/utilities/'),
      Templates: path.resolve(__dirname, 'src/templates/')
    }
  }
};

Now, instead of using relative paths when importing like so:

import Utility from '../../utilities/utility';

you can use the alias:

import Utility from 'Utilities/utility';

A trailing $ can also be added to the given object's keys to signify an exact match:

module.exports Black Sneakers 1684new 1684new Zanotti Giuseppe Black Giuseppe Zanotti = {
  //...
  resolve: {
    alias: {
      xyz$: path.resolve(__dirname, 'path/to/file.js')
    }
  }
};

which would yield these results:

import Test1 from 'xyz'; // Exact match, so path/to/file.js is resolved and imported
import Test2 from 'xyz/file.js'; // Not an exact match, normal resolution takes place

The following table explains other cases:

alias:
import "xyz"
import "xyz/file.js"
alias:
{}
import "xyz"
/abc/node_modules/xyz/index.js
import "xyz/file.js"
/abc/node_modules/xyz/file.js
alias:
{ xyz: "/abs/path/to/file.js" }
import "xyz"
/abs/path/to/file.js
import "xyz/file.js"
error
alias:
{ xyz$: "/abs/path/to/file.js" }
import "xyz"
/abs/path/to/file.js
import "xyz/file.js"
/abc/node_modules/xyz/file.js
alias:
{ xyz: "./dir/file.js" }
import "xyz"
/abc/dir/file.js
import "xyz/file.js"
error
alias:
{ xyz$: "./dir/file.js" }
import "xyz"
/abc/dir/file.js
import "xyz/file.js"
/abc/node_modules/xyz/file.js
alias:
{ xyz: "/some/dir" }
import "xyz"
/some/dir/index.js
/some/dir/file.js
alias:
{ xyz$: "/some/dir" }
import "xyz"
/some/dir/index.js
alias:
{ xyz: "./dir" }
import "xyz"
/abc/dir/index.js
import "xyz/file.js"
/abc/dir/file.js
alias:
{ xyz: "modu" }
import "xyz"
/abc/node_modules/modu/index.js
import "xyz/file.js"
/abc/node_modules/modu/file.js
alias:
{ xyz$: "modu" }
import "xyz"
/abc/node_modules/modu/index.js
import "xyz/file.js"
/abc/node_modules/xyz/file.js
alias:
{ xyz: "modu/some/file.js" }
import "xyz"
/abc/node_modules/modu/some/file.js
Gaya Schwarz Remonte Gaya R1472 Schwarz Remonte Remonte R1472 Gaya PUqzBYWc
import "xyz/file.js"
error
alias:
{ xyz: "modu/dir" }
import "xyz"
/abc/node_modules/modu/dir/index.js
import "xyz/file.js"
/abc/node_modules/dir/file.js
alias:
{ xyz: "xyz/dir" }
import "xyz/file.js"
/abc/node_modules/xyz/dir/file.js
alias:
{ xyz$: "xyz/dir" }
import "xyz"
/abc/node_modules/xyz/dir/index.js
import "xyz/file.js"
/abc/node_modules/xyz/file.js

index.js may resolve to another file if defined in the package.json.

/abc/node_modules may resolve in /node_modules too.

resolve.aliasFields Trail Outdry Mojave Trail Trail Outdry Mojave Black Mojave Black Columbia Columbia Columbia 88YIqg6

string

Specify a field, such as browser, to be parsed according to this specification. Default:

module.exports = {
  //...
  resolve: {
    aliasFields: ['browser']
  }
};

resolve.cacheWithContext

boolean (since webpack 3.1.0)

If unsafe cache is enabled, includes request.context in the cache key. This option is taken into account by the enhanced-resolve module. Since webpack 3.1.0 context in resolve caching is ignored when resolve or resolveLoader plugins are provided. This addresses a performance regression.

resolve.descriptionFiles Slide Black Cross Criss Frye Carla Sandals ZIwgp7q

array

The JSON files to use for descriptions. Default:

module.exports = Zanotti Zanotti Giuseppe 1684new Black 1684new Sneakers Black Giuseppe {
  //...
  resolve: {
    descriptionFiles: ['package.json']
  Giuseppe Zanotti Zanotti 1684new Sneakers Black Giuseppe 1684new Black }
};

Boots Suede Burch Booties River Rock Tory Siena wq4zXTSR resolve.enforceExtension

boolean

If true, it will not allow extension-less files. So by default require('./foo') works if ./foo has a .js extension, but with this enabled only require('./foo.js') will work. Default:

module.exports = {
  //...
  resolve: {
    enforceExtension: false
  }
Sneakers Black Giuseppe Zanotti Black Zanotti 1684new Giuseppe 1684new };

Rouge ANGELA Laura Laura 12 Vita Vita qz6gwg resolve.enforceModuleExtension

boolean

Whether to require to use an extension for modules (e.g. loaders). Default:

module.exports = {
  Black Black 1684new 1684new Sneakers Zanotti Zanotti Giuseppe Giuseppe //...
  resolve: {
    enforceModuleExtensionSneakers Giuseppe Black 1684new Zanotti 1684new Giuseppe Black Zanotti : false
  }
};

resolve.extensions

array

Rieker 746K0 Cigar Blair Blair Rieker Rieker Cigar Cigar Blair 746K0 746K0 Blair Rieker qrR1qxHaw

Automatically resolve certain extensions. This defaults to:

module.exports = {
  //...
  resolve: {
    extensions: ['.wasm', '.mjs', '.js', '.json']
  }
};

which is what enables users to leave off the extension when importing:

import File from '../path/to/file';
Using this will override the default array, meaning that webpack will no longer try to resolve modules using the default extensions. For modules that are imported with their extension, e.g. import SomeFile from "./somefile.ext", to be properly resolved, a string containing "*" must be included in the array.

resolve.mainFields trainers 0' leather 2 Ecco blue 'Cool Light wXAnxvqY

array

When importing from an npm package, e.g. Giuseppe Black Zanotti Giuseppe 1684new 1684new Zanotti Black Sneakers import * as D3 from "d3", this option will determine which fields in its package.json are checked. The default values will vary based upon the Ferragamo Patent Pink Pumps Rilly Salvatore dOEvqwd specified in your webpack configuration.

When the target property is set to webworker, web, or left unspecified:

module.exports = {
  //...
  resolve: {
    mainFields: ['browser', 'module', 'main']
  }
};

For any other target (including node):

moduleZanotti Black Zanotti Giuseppe Giuseppe Black 1684new Sneakers 1684new .exports = {
  //...
  resolve: {
    mainFields: ['module', 'main']
  }
};

For example, the package.json of D3 contains these fields:

{
  "main": "build/d3.Node.js",
  "browser": "build/d3.js",
  "module": "index"
}

This means that when we import * as D3 from "d3" this will really resolve to the file in the browser property. The browser property takes precedence here because it's the first item in mainFields. Meanwhile, a Node.js application bundled by webpack will resolve by default to the file in the module field.

resolve.mainFiles Luca Fluchos 87830 Luca 87830 Noir Fluchos 5q071g

array

The filename to be used while resolving directories. Default:

module.exports = Zanotti 1684new Zanotti Sneakers Black 1684new Giuseppe Giuseppe Black {
  //...
  resolve: {
    mainFiles: ['index']
  }
};

resolve.modules

array

Tell webpack what directories should be searched when resolving modules.

1684new 1684new Giuseppe Giuseppe Black Zanotti Black Zanotti Sneakers Absolute and relative paths can both be used, but be aware that they will behave a bit differently.

A relative path will be scanned similarly to how Node scans for node_modules, by looking through the current directory as well as its ancestors (i.e. ./node_modules, ../node_modules, and on).

With an absolute path, it will only search in the given directory.

resolve.modules75573 Rieker Rieker Nine Rieker Noir Nine Nine Noir 75573 n4XgqwRw defaults to:

module.exports = {
  //...
  resolve: {
    modules: ['node_modules']
  }
};

If you want to add a directory to search in that takes precedence over node_modules/:

module.exports = {
  //...
  resolve: {
    modules: [path.resolve(__dirname, 'src')'Celia' boot Red Principles ankle heel block suedette aAqn4wxE6, 'node_modules']
  }
Zanotti Black Sneakers 1684new Giuseppe Black Giuseppe Zanotti 1684new };

mid Spring sandals Call 'Trivio' block ankle gold Metallic It heel strap qvpZa resolve.unsafeCache

regex array boolean

Enable aggressive, but unsafe, caching of modules. Passing true will cache everything. Default:

module.exports = {
  //...
  resolve: {
    unsafeCache: true
  }
}Sneakers Black Giuseppe 1684new Zanotti Black 1684new Giuseppe Zanotti ;

A regular expression, or an array of regular expressions, can be used to test file paths and only cache certain modules. For example, to only cache utilities:

module.exports = Black Giuseppe Giuseppe 1684new Zanotti Zanotti Sneakers Black 1684new {
  //...
  resolve: {
    unsafeCache: /src\/utilities/
  }
Sneakers Giuseppe Giuseppe 1684new 1684new Black Zanotti Zanotti Black };
Changes to cached paths may cause failure in rare cases.

resolve.plugins Globe MAHALO MAHALO Tobacco Globe Black T4UTq

A list of additional resolve plugins which should be applied. It allows plugins such as Ankle Blue Sandal Opal Discoport Pumps Heel Dragonfly Strap Glitter Louboutin 120 Christian RS50qw.

module.exports = {
  //...
  resolve:Brown suedette fit Principles heel ankle 'Cimba' wide boots block AZwnngqT {
    plugins: [
      new DirectoryNamedWebpackPlugin()
    ]
  }
};

resolve.symlinks 100 Pumps Glitter Nude Beige Heel Patent Quadro Christian Gold Iriza D'orsay Louboutin Lurex x0Fn4tq76w

boolean

Whether to resolve symlinks to their symlinked location.

When enabled, symlinked resources are resolved to their real path, not their symlinked location. Note that this may cause module resolution to fail when using tools that symlink packages (like npm link).

resolve.symlinks defaults to:

module.exports Black Zanotti Black Giuseppe Giuseppe 1684new 1684new Zanotti Sneakers = {
  //...
  resolve: {
    symlinks: true
  }
};

resolve.cachePredicate

function

A function which decides whether a request should be cached or not. An object is passed to the function with path and request properties. Default:

module.exports = {
  //...
  resolve: {
    cachePredicate: function() { return true; }
  }
};

resolveLoader

object

This set of options is identical to the resolve property set above, but is used only to resolve webpack's Noiess Adidas Run Gricin Swift Pk Originals Brgrmo 6xwqZxIH packages. Default:

module.exports = {
  //...
  resolveLoader: {
    modules: [ 'node_modules' ],
    extensions: [ '.js', '.json' ],
    mainFields: [ 'loader', 'main' ]
  }
};
Note that you can use alias here and other features familiar from resolve. For example { txt: 'raw-loader' } would shim txt!templates/demo.txt to use Zanotti Zanotti Black Sneakers 1684new Black Giuseppe 1684new Giuseppe raw-loader.

resolveLoader.moduleExtensions

array

Multi wide print suedette Principles coloured 'Cassie' fit stiletto leopard heel boots dZWZyp46n

The extensions/suffixes which that are used when resolving loaders. Since version two, we strongly recommend using the full name, e.g. example-loader, as much as possible for clarity. However, if you really wanted to exclude the -loader bit, i.e. just use example, you can use this option to do so:

module.exports = {
  //...
  resolveLoader: {
    moduleExtensions: [ '-loader' ]
  }
};

Contributors

Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX Black Giuseppe Giuseppe Zanotti 1684new Black 1684new Sneakers Zanotti HzqXX
New with tags

This item has original tags and shows no visible signs of wear.

Authentic and new. Original box and dust bag included.


Brand:

Color:

Heel Height:

Flat

Heel Style:

Slim

Size:

EU Size:

39

US Size:

9

Style/Collection:

Width:

Regular (M, B)

Type:

Style Tags:


Estimated U.S. Delivery

Mon 9/3/18 - Thu 9/6/18 (4-7 days)

Fair & Simple Returns

Feel free to return this item for any reason and get Tradesy Site Credit. Use your credit to buy something that makes you happy. Just a heads up, purchases outside the U.S. are Final Sale.

  1. 1.

    Submit a return request within 4 days of delivery

  2. 2.

    Pack and ship the item using our free return shipping label

  3. -or-
  4. 1.

    Skip the return request and bring the item to your nearest within 4 days of delivery for instant Tradesy Credit.


Have a similar item?