vic / elmx-webpack-preloader

Compile elmx to elm files before using elm-webpack-loader
https://www.npmjs.com/package/elmx-webpack-preloader
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Webpack 4 - Cannot read property 'elmx' of undefined #3

Closed jakub-zawislak closed 6 years ago

jakub-zawislak commented 6 years ago

elmx-webpack-preloader/index.js:24:35

In webpack there is no this.options variable

webpack 3 already deprecated this.options in the loader context. webpack 4 removes it now.

Guideline: Loaders should receive all options via this.query. They should not use other ways to receive options, i. e. no property in webpack options, no environment variable.

https://medium.com/webpack/webpack-4-migration-guide-for-plugins-loaders-20a79b927202

vic commented 6 years ago

closed by #4

vic commented 6 years ago

Just published 1.2.0 with webpack 4 support by @Lermex