Change name of process to avoid conflicts between the global usage #1

Closed
icarus-sullivan wants to merge 1 commit from main into main
icarus-sullivan commented 2021-06-19 10:02:41 +02:00 (Migrated from github.com)

Hello, I'm using rollup and a svelte app where I inject some environment specific data into my codebase. When rollup is bundling it displays an error similar to this ...

node_modules/@codemirror/state/dist/index.js (345:17)
343:             pos = 0;
344:         }
345:         function process(spec) {
                      ^
346:             if (Array.isArray(spec)) {
347:                 for (let sub of spec)
Error: Unexpected token

The root problem is a collision being detected in the function process.

Hello, I'm using rollup and a svelte app where I inject some environment specific data into my codebase. When rollup is bundling it displays an error similar to this ... ```[!] Error: Unexpected token node_modules/@codemirror/state/dist/index.js (345:17) 343: pos = 0; 344: } 345: function process(spec) { ^ 346: if (Array.isArray(spec)) { 347: for (let sub of spec) Error: Unexpected token ``` The root problem is a collision being detected in the function process.
marijnh commented 2021-06-19 10:10:37 +02:00 (Migrated from github.com)

Sorry, but that's a bug in your tooling, and not a problem with this library. Rollup can handle this fine (the library itself is built using Rollup), so you'll have to look at the plugins or other tools you're using, figure out which one is broken, and report a bug there.

Sorry, but that's a bug in your tooling, and not a problem with this library. Rollup can handle this fine (the library itself is built using Rollup), so you'll have to look at the plugins or other tools you're using, figure out which one is broken, and report a bug there.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/state!1
No description provided.