Siderite / LInQer

The C# Language Integrated Queries ported for Javascript for amazing performance

Home Page:https://siderite.dev/blog/linq-in-javascript-linqer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It doesn't work with WebPack

koyott opened this issue · comments

Hello

On compilation we have an error.

ERROR in ./node_modules/@siderite/linqer/tests.html 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

|
|
@ ./src/Scenes/GameScene.js 6:11-38
@ ./src/index.js

It's probably because the npm package has main set to tests.html which your software tries to interpret as a Javascript file. I don't yet know how to solve this, especially since the package contains three different js files one could use.

How did you try loading it? require? import? I have yet to understand these things. Meanwhile you could retrieve the javascript files you want to use from the node_modules folder.

If you have any solution I would be happy to implement it.

Try it now. The main entry point is now LInQer.all.js and it uses module.exports.