How to use the parcel-bundler/src/Logger.warn function in parcel-bundler

To help you get started, we’ve selected a few parcel-bundler 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 QQuick / Transcrypt / parcel / asset.js View on Github external
getTranscryptRunInfo() {
        if (this.options['watch']) {
            if (fs.existsSync(this.runInfoPath)) {
                try {
                    return JSON.parse(fs.readFileSync(this.runInfoPath, 'utf8'));
                }catch (err) {
                    logger.warn(`${LOG_PREFIX} Unable to read transcrypt dependencies for watch mode: ${err}`);
                }
            }
        }
        return {};
    }