(specifier, parent)
| 31 | }, |
| 32 | resolver: { |
| 33 | resolve(specifier, parent) { |
| 34 | if (specifier.startsWith('.')) { |
| 35 | return path.resolve(path.dirname(parent), specifier); |
| 36 | } |
| 37 | |
| 38 | if (path.extname(specifier) === '') { |
| 39 | // Assume this is a package. |
| 40 | specifier += '/src/index.css'; |
| 41 | return require.resolve(specifier); |
| 42 | } |
| 43 | |
| 44 | let baseDir = process.env.DOCS_ENV === 'production' ? 'docs' : 'packages'; |
| 45 | return path.resolve(options.projectRoot, baseDir, specifier); |
| 46 | }, |
| 47 | read(filePath) { |
| 48 | if (filePath === `${asset.filePath}.lightning`) { |
| 49 | return cssCode.join('\n'); |
no outgoing calls
no test coverage detected