skeleton-navigation icon indicating copy to clipboard operation
skeleton-navigation copied to clipboard

Working with the webpack skeleton

Open istrau3 opened this issue 10 years ago • 5 comments

I have tried to get the webpack skeleton going but am running into several issues:

  1. When I run "npm run dev" the dev webserver runs ok but it is not generating sourcemaps (i.e. I can't see the source code in the chrome dev tools.

  2. How do I load additional third party modules? For example I tried npm install marveloussoftware/marvelous-aurelia-core and got an error SystemJS is not defined (in the browser's console).

Thanks in advance.

istrau3 avatar Mar 14 '16 16:03 istrau3

  1. The sourcemaps are included in the generated bundles. In Chrome, they are a bit hidden under the webpack:// folder.
  2. Some third party modules have a hardcoded dependency on SystemJS. These modules are not supported with webpack.

martijnboland avatar Mar 16 '16 18:03 martijnboland

@istrau3 You may want to contact any 3rd party modules that re using SystemJS and instead mention that the Aurelia team recommends using Aurelia's Loader instead. That will ensure that their module works with all module loaders we support (system.js, require.js, dojo, webpack, etc.)

EisenbergEffect avatar Mar 16 '16 18:03 EisenbergEffect

@EisenbergEffect I am getting the following error originating in aurelia-validation:

ReferenceError: System is not defined

istrau3 avatar Mar 16 '16 20:03 istrau3

@martijnboland The sourcemaps you mention seem to be mapping back to the pre-concatonated files. However, all the files are all babel-transpiled. I am not seeing the actual source (i.e. ES7 source).

istrau3 avatar Mar 16 '16 20:03 istrau3

@istrau3 Yes, we've located the error. @PWKad Please fix this as soon as you can. Thanks!

EisenbergEffect avatar Mar 16 '16 20:03 EisenbergEffect