Sha256: 1cf8b8629917f9c0e59e266af422a9bef357cc5f72c0b3a830ad240b4cdedf5f
Contents?: true
Size: 656 Bytes
Versions: 15
Compression:
Stored size: 656 Bytes
Contents
const { resolve } = require('path') const { realpathSync } = require('fs') const { loaderMatches } = require('../utils/helpers') const { getSwcLoaderConfig } = require('../swc') const { source_path: sourcePath, additional_paths: additionalPaths, webpack_loader: webpackLoader } = require('../config') module.exports = loaderMatches(webpackLoader, 'swc', () => ({ test: /\.(ts|tsx|js|jsx|mjs|coffee)?(\.erb)?$/, include: [sourcePath, ...additionalPaths].map((p) => { try { return realpathSync(p) } catch (e) { return resolve(p) } }), exclude: /node_modules/, use: ({ resource }) => getSwcLoaderConfig(resource) }))
Version data entries
15 entries across 15 versions & 1 rubygems