File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,21 @@ var install = require("install").makeInstaller({
30
30
// identifiers if they do not exactly match an installed module.
31
31
extensions: [" .js" , " .json" ],
32
32
33
- // If defined, the options.onInstall function will be called any time
34
- // new modules are installed.
35
- onInstall,
36
-
37
- // If defined, the options.override function will be called before
38
- // looking up any top-level package identifiers in node_modules
39
- // directories. It can return either a string to provide an alternate
40
- // package identifier or a non-string value to prevent the lookup from
41
- // proceeding.
42
- override,
43
-
44
33
// If defined, the options.fallback function will be called when no
45
34
// installed module is found for a required module identifier. Often
46
35
// options.fallback will be implemented in terms of the native Node
47
36
// require function, which has the ability to load binary modules.
48
- fallback
37
+ fallback,
38
+
39
+ // Boolean flag indicating whether the installed code will be running in
40
+ // a web browser.
41
+ browser,
42
+
43
+ // List of fields to look for in package.json files to determine the
44
+ // main entry module of the package. The first field listed here whose
45
+ // value is a string will be used to resolve the entry module. Defaults
46
+ // to just ["main"], or ["browser", "main"] if options.browser is true.
47
+ mainFields: [" browser" , " main" ],
49
48
});
50
49
```
51
50
You can’t perform that action at this time.
0 commit comments