build-plugins/fix-acorn-esm-import.js
// which can cause issues for secondary tools that use the ESM version of acorn
which can cause issues for secondary tools that use the ESM version of acorn
which can cause issues for secondary tools that use the ESM version of acorn
function fixAcornEsmImport() {
	let found = false;
	return {
		name: 'fix-acorn-esm-import',
		renderChunk(code) {
			return code.replace(expectedAcornImport, () => {
				found = true;
				return newAcornImport;
			});
		},
		writeBundle() {
			if (!found) {
				this.error('Could not find expected acorn import, please examine generated code.');
			}
		}
	};
}
function fixAcornEsmImport ( ) { let found = false ; return { name : 'fix-acorn-esm-import' , renderChunk ( code ) { return code . replace ( expectedAcornImport , ( ) => { found = true ; return newAcornImport ; } ) ; } , writeBundle ( ) { if ( ! found ) { this . error ( 'Could not find expected acorn import, please examine generated code.' ) ; } } } ; }
which can cause issues for secondary tools that use the ESM version of acorn
which can cause issues for secondary tools that use the ESM version of acorn