webpack.config.js

Summary

Maintainability
A
0 mins
Test Coverage
"use strict";

const target = require( "@pegjs/bundler/target" );
const { VERSION } = require( "pegjs" );

const entry = require.resolve( "pegjs" );
const banner = `

    /**
     * PEG.js v${ VERSION }, [hash]
     * https://pegjs.org/
     *
     * Copyright (c) 2010-2016 David Majda
     * Copyright (c) 2017+ Futago-za Ryuu
     *
     * Released under the MIT License.
     */

    /* eslint-disable */

`;
const library = "peg";

module.exports = [

    /* https://unpkg.com/pegjs@latest/dist/peg.js */
    target( {

        banner,
        entry,
        library,
        output: "packages/pegjs/dist/peg.js",

    } ),

    /* https://unpkg.com/pegjs@latest/dist/peg.min.js */
    target( {

        banner,
        entry,
        library,
        output: "packages/pegjs/dist/peg.min.js",

    } ),

];