Open
Description
I've installed via bower: "google-code-prettify": "~1.0.3",
When I run things through amdclean, this is the only module that isn't being found.
I can see that the require('google-code-prettify') gets converted to just a variable of 'google_code_prettify;', but this variable isn't referenced at the top of the file like the other requires are.
Here is how I'm using amdclean (and the hacky workaround for now):
requirejs.optimize({
name: 'main'
baseUrl: "#{JS_DIR}"
mainConfigFile: "#{JS_DIR}/main.js"
out: "#{DEPLOY_APP_DIR}/main.js"
optimize: 'none'
onModuleBundleComplete: ((data) ->
cleaned = amdclean.clean({
transformAMDChecks: true
filePath: "#{DEPLOY_APP_DIR}/main.js"
wrap: {
start: '(function() { var google_code_prettify; '
end: '}());'
}
})
fs.writeFile("#{DEPLOY_APP_DIR}/main.js", cleaned, cb)
)
})
Metadata
Metadata
Assignees
Labels
No labels