Skip to main content
100%

Gist e9ca6a4ec4fe6c3bee98

✓ Published0🌍 Public
HHypercubed
Last edited Mar 22, 2016
Created on Mar 22, 2016

This example shows how a JavaScript module with reserved-word property names—specifically `await`—triggers a parsing error during Rollup’s build pipeline, while the same names work in object literals. The code includes an `index.js` file defining an exported object with methods named `await` and `add`, and a `rollup.config.js` that applies the `rollup-plugin-babel` with the `es2015-rollup` preset via `.babelrc`. The visualization highlights the exact source-map error location from Rollup’s parser, contrasting valid syntax with the failing line. It uses Rollup’s plugin system and Babel’s preset configuration to demonstrate the issue.

AI-generated description

Similar vizzes