How to use the @haul-bundler/core.AssetResolver.test function in @haul-bundler/core

To help you get started, we’ve selected a few @haul-bundler/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github callstack / haul / packages / haul-preset-0.59 / src / defaultConfig.ts View on Github external
*/
                cacheDirectory: dev
                  ? path.join(
                      root,
                      'node_modules',
                      '.cache',
                      'babel-loader',
                      platform
                    )
                  : false,
              },
            },
          ],
        },
        {
          test: AssetResolver.test,
          use: {
            /**
             * Asset loader enables asset management based on image scale
             * This needs the AssetResolver plugin in resolver.plugins to work
             */
            loader: ASSET_LOADER_PATH,
            options: {
              runtime,
              platform,
              root,
              bundle: env.bundleTarget === 'file',
            },
          },
        },
      ],
    },
github callstack / haul / packages / haul-preset-0.60 / src / defaultConfig.ts View on Github external
*/
                cacheDirectory: dev
                  ? path.join(
                      root,
                      'node_modules',
                      '.cache',
                      'babel-loader',
                      platform
                    )
                  : false,
              },
            },
          ],
        },
        {
          test: AssetResolver.test,
          use: {
            /**
             * Asset loader enables asset management based on image scale
             * This needs the AssetResolver plugin in resolver.plugins to work
             */
            loader: ASSET_LOADER_PATH,
            options: {
              runtime,
              platform,
              root,
              bundle: env.bundleTarget === 'file',
            },
          },
        },
      ],
    },