How do you install @hpcc-js/wasm in a way that works with asset-mapper and importmap.php on Symfony ? #368
Dominic-Mayers
started this conversation in
General
Replies: 1 comment
-
|
You can install the different wasm packages seperatly which may work better in this scenario: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I do
npm install --prefix ./assets @hpcc-js/wasm@2.33.0andbin/console importmap:require @hpcc-js/wasm --path=./assets/node_modules/@hpcc-js/wasm/dist/index.js. It installsnode_modulesin/assetsoutside the/vendordirectory given that they are independent dependencies folders. It provides all the benefits of asset-mapper and importmap of Symfony. I do not usebin/console importmap:require @hpcc-js/wasmwithout the --path option, because it maps@hpcc-js/wasmto a dynamic loader/assets/vendor..../wasm.index.jsthat uses absolute paths, which I could not make work with asset-mapper.Beta Was this translation helpful? Give feedback.
All reactions