David Bruant (2014-01-24T17:32:17.000Z)
domenic at domenicdenicola.com (2014-01-31T21:14:34.521Z)
Le 24/01/2014 18:26, John Lenz a écrit : > My basic question remains. As a tool owner how do I know if what I'm > looking at is intended to be a Module or a Script? How do you know if some code is intended for the browser or Node? How do you know some code is intended to be used in a WebWorker and not in the main thread? How do you know the code won't be concatenated a "use strict" when someone else uses it? The code itself lacks the context in which it's being loaded (hence very defensive patterns like UMD (Universal Module Definition)). If you want to be exhaustive, you'll have to make an assumption or make your tool smarter about the context.