Transforms broken when use ES7 Decorators or YAML #111
Open
Description
Hello @substack. We use 2 transform (babel and yamlify).
When we update to module-deps 4.0.5, browserify throw next error:
SyntaxError: Unexpected character '#'
This error in yaml file.
or detailed example with error stack:
Error: Parsing file /Users/k.kaysarov/src/account/_components/statistics/general/common/navigation/statistics-navigation.js: Unexpected character '@' (5:2)
at Deps.parseDeps (/Users/k.kaysarov/src/account/node_modules/module-deps/index.js:452:28)
at fromSource (/Users/k.kaysarov/src/account/node_modules/module-deps/index.js:389:44)
at /Users/k.kaysarov/src/account/node_modules/module-deps/index.js:383:17
at ConcatStream.<anonymous> (/Users/k.kaysarov/src/account/node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:72:20)
at ConcatStream.emit (events.js:166:7)
at finishMaybe (/Users/k.kaysarov/src/account/node_modules/readable-stream/lib/_stream_writable.js:511:14)
at endWritable (/Users/k.kaysarov/src/account/node_modules/readable-stream/lib/_stream_writable.js:521:3)
at ConcatStream.Writable.end (/Users/k.kaysarov/src/account/node_modules/readable-stream/lib/_stream_writable.js:486:5)
at DuplexWrapper.onend (/Users/k.kaysarov/src/account/node_modules/readable-stream/lib/_stream_readable.js:545:10)
This error in js file
Error code example:
var { cut, extend } = require('catbee-utils');
class CampaignBudget {
@extend({ css })
render () {
return this.$context.getWatcherData();
}
}
module.exports = CampaignBudget;
If you need, i provide you example with code.
Error reproduce only in 4.0.5, 4.0.4 work correctly.
Metadata
Assignees
Labels
No labels