How to use the builders.buildReference function in builders

To help you get started, we’ve selected a few builders 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 rtymchyk / babel-plugin-extract-text / test / builders.spec.js View on Github external
it('strips up to base directory from reference if found', () => {
      const result = buildReference(
        { msgid: 'Hello' },
        Object.assign({}, state, {
          opts: {
            includeReference: true,
            baseDir: 'project',
          },
        }))

      expect(result.reference).toBe('js/code.js')
    })

builders

Angular Universal builders package

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis