MCPcopy
hub / github.com/ember-cli/ember-cli / allowImport

Function allowImport

lib/broccoli/ember-app.js:1397–1407  ·  view source on GitHub ↗
(strategy, fileList, assetPath, options)

Source from the content-addressed store, hash-verified

1395}
1396
1397function allowImport(strategy, fileList, assetPath, options) {
1398 if (strategy === 'firstOneWins') {
1399 // We must find all occurrences and decide what to do with each.
1400 return _firstOneWins.call(undefined, fileList, assetPath, options);
1401 } else if (strategy === 'lastOneWins') {
1402 // We can simply use the "last one wins" strategy.
1403 return _lastOneWins.call(undefined, fileList, assetPath, options);
1404 } else {
1405 return true;
1406 }
1407}

Callers 2

_importMethod · 0.85
addOutputFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…