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

Option dest does not support function for cjs output #683

Closed
ilyavf opened this issue Apr 25, 2017 · 1 comment
Closed

Option dest does not support function for cjs output #683

ilyavf opened this issue Apr 25, 2017 · 1 comment
Assignees

Comments

@ilyavf
Copy link
Contributor

ilyavf commented Apr 25, 2017

As described in steal-tools/ExportOutput
dest can be a function. But in the following example its getting ignored (if its a string then its OK):

stealTools.export({
  steal: {
    config: 'package.json!npm',
    main: 'myprop/index'
  },
  outputs: {
    '+cjs': {
      dest: function(moduleName){
            // --- ---- is not getting called.
            return __dirname+"/"+moduleName+".js";
      }
    }
  }
});
@matthewp
Copy link
Member

The code for this stuff is in this folder: https://github.com/stealjs/steal-tools/tree/master/lib/build/helpers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants