Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 3233cec

Browse files
committed
Extend typings test
1 parent f582f9c commit 3233cec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface Options {
88
* will be used
99
* @default ['module', 'main']
1010
*/
11-
mainFields?: string[];
11+
mainFields?: ReadonlyArray<string>;
1212

1313
/**
1414
* @deprecated use "mainFields" instead

typings-test.js

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const config = {
1111
},
1212
plugins: [
1313
resolve({
14+
mainFields: ['untranspiled', 'module', 'main'],
1415
module: true,
1516
jsnext: true,
1617
main: true,
@@ -19,6 +20,7 @@ const config = {
1920
preferBuiltins: false,
2021
jail: '/my/jail/path',
2122
only: [ 'some_module', /^@some_scope\/.*$/ ],
23+
dedupe: ['lodash'],
2224
modulesOnly: true,
2325
customResolveOptions: {
2426
moduleDirectory: 'js_modules'

0 commit comments

Comments
 (0)