Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoring files #111

Closed
shaunc opened this issue Feb 8, 2017 · 1 comment
Closed

ignoring files #111

shaunc opened this issue Feb 8, 2017 · 1 comment

Comments

@shaunc
Copy link

shaunc commented Feb 8, 2017

In order to test an addon, I would like to include a test dependency which indirectly requires an optional package not specified as a dependency.

I am getting the error:

Error: Cannot find module 'WNdb' from '/Volumes/Macintosh_HD/Users/shauncutts/src/ember-column-index/node_modules/natural/lib/natural/wordnet'
    at /Volumes/Macintosh_HD/Users/shauncutts/src/ember-column-index/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
    at process (/Volumes/Macintosh_HD/Users/shauncutts/src/ember-column-index/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
    at ondir (/Volumes/Macintosh_HD/Users/shauncutts/src/ember-column-index/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
    at load (/Volumes/Macintosh_HD/Users/shauncutts/src/ember-column-index/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
    at onex (/Volumes/Macintosh_HD/Users/shauncutts/src/ember-column-index/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
    at /Volumes/Macintosh_HD/Users/shauncutts/src/ember-column-index/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
    at FSReqWrap.oncomplete (fs.js:111:15)

I tried adding

browserify: {
  ignore: ['WNdb'],
}

To tests/dummy/config/environment.js. However, it has no effect. Is there a way to get ember-browserify to ignore a file?

@shaunc
Copy link
Author

shaunc commented Feb 8, 2017

  1. ok -- for documentation purposes:

    browserify: {
    ignoreMissing: ['WNdb'],
    }

Is the correct syntax. Unfortunately it seems that ember-browserify can't load modules in addons unless they are specified as dependencies (even for testing?)... which I don't want to do because of addon bloat.

@shaunc shaunc closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant