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

Commit

Permalink
Extend typings test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Apr 10, 2019
1 parent f582f9c commit 3233cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -8,7 +8,7 @@ export interface Options {
* will be used
* @default ['module', 'main']
*/
mainFields?: string[];
mainFields?: ReadonlyArray<string>;

/**
* @deprecated use "mainFields" instead
Expand Down
2 changes: 2 additions & 0 deletions typings-test.js
Expand Up @@ -11,6 +11,7 @@ const config = {
},
plugins: [
resolve({
mainFields: ['untranspiled', 'module', 'main'],
module: true,
jsnext: true,
main: true,
Expand All @@ -19,6 +20,7 @@ const config = {
preferBuiltins: false,
jail: '/my/jail/path',
only: [ 'some_module', /^@some_scope\/.*$/ ],
dedupe: ['lodash'],
modulesOnly: true,
customResolveOptions: {
moduleDirectory: 'js_modules'
Expand Down

0 comments on commit 3233cec

Please sign in to comment.