Skip to content

Commit

Permalink
elm: use multiple "with" query params for multi module compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophP committed May 20, 2022
1 parent e6d0c08 commit 4e8eec7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/transformers/elm/src/ElmTransformer.js
Expand Up @@ -96,12 +96,8 @@ export default (new Transformer({

// gather extra modules that should be added to the compilation process
function resolveExtraSources(asset) {
const withParam = asset.query.get('with');
if (withParam === null) {
return [];
}
const dirname = path.dirname(asset.filePath);
return withParam.split(',').map(relPath => path.join(dirname, relPath));
return asset.query.getAll('with').map(relPath => path.join(dirname, relPath));
}

function elmBinaryPath() {
Expand Down

0 comments on commit 4e8eec7

Please sign in to comment.