mrkashlakov / enb-transform-flow Goto Github PK
View Code? Open in Web Editor NEWENB tech for transforming
ENB tech for transforming
При сборке вылетает на
TypeError: Cannot read property 'get' of undefined
at node_modules/enb-transform-flow/techs/transform-flow.js:84:21
Что привело меня к строчке
var sharedResources = this.node.getSharedResources();
var fileCache = sharedResources.fileCache; // << тут undefined
Привет! Спасибо за модуль!
Возникла проблема.
Если для babel включить опцию sourcemap, ( в моем случае - sourcemap: "both") то на выходе мы получаем объект, расширенный map'ом, но почему-то он не знает о своем исходном файле.
{ metadata: { modules: { imports: [], exports: [Object] }, usedHelpers: [] },
ignored: false,
code: '/*some-js-code//# sourceMappingURL=data:application/json;base64,ey...Q==',
ast: null,
map:
{ version: 3,
sources: [ 'unknown' ],
names: [],
mappings: ';;;;AAIA,OAAO,CAAC,MA...',
file: 'unknown',
sourcesContent: [ 'some-code' ] } }
В поле map.source и map.file, вместо ожидаемой строки с путем до файла, приходит значение [ 'unknown' ].
Есть ли идеи, почему такое может происходить?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.