Veikko Eeva
Veikko Eeva
Cross-referencing https://github.com/DanielSchaffer/webpack-babel-multi-target-plugin/issues/14, might be related. Will investigate.
It appears the problem was solved by adding `doNotTarget: [ /node_modules/, nodeModulesDir ],` to exclude Node modules from transpilation. I have another problem now, but it appears being something entirely...
@DanielSchaffer Ah, I see. I just updated the Webpack configuration. After excluding those I see errors that tell basically > TypeError: entry.test is not a function at doNotTarget.doNotTarget.find.entry (C:\projektit\testit\Aurelia\AureliaTest1\node_modules\webpack-babel-multi-target-plugin\dist\src\targeting.plugin.js:258:70) (that...
@DanielSchaffer OK. :) I noticed I had ``` { 'test': /\.tsx?$/, use: [ BabelMultiTargetPlugin.loader(), { loader: 'ts-loader', options: { transpileOnly: true, experimentalWatchApi: true } }], **'exclude': [/node_modules/, nodeModulesDir],** }, ```...
@DanielSchaffer That is much appreciated. If it's something that requires Aurelia specific questions, I might be able to help or the very least either forward the questions and/or point channels...
I updated the repo, ran `au build` and it went through. The step `au build` produced > ERROR in (webpack)-dev-server/client?babel-target=es6 Module not found: TypeError: Cannot read property 'descriptionFileRoot' of undefined...
I wonder if this could be solved with fiddling about the URL... Somehow seems too easy (but I don't know the inner workings)... :P
Don't sweat too much. You have been very helpful already. Let's see what comes. :)
An intermediary note that didn't get this resolved with a bit extra added effort. Reading https://github.com/aurelia/webpack-plugin/wiki/AureliaPlugin-options I'm eying towards the parts on HTML loading and templating and check those next...
There is https://github.com/aurelia/webpack-plugin/pull/159, more explanation at https://github.com/aurelia/webpack-plugin/issues/157. Might affect this too, at least might shed light into some inner behavior if that becomes and issue.