Comments (4)
That ain't right. Thank you for raising the issue!
from rollup.
I am using Gulp to bundle all files in a folder and generate some file which has X amount of exports
(from each file in the folder), the reason is so I could do something like this:
import * as controllers from 'controllers_bundle';
which will import all my controllers' functions so I won't have to manually write each import for each controller.
Anyway, when then gulp task combines the files, I get one big file which has many import declaration which repeat themselves since those controller files are mostly importing the same files themselves.
I then get a Duplicate declaration
error on my bash console and my everything stops. I would think Rollup would be smart enough to internally check if an imported file has in itself duplicate import
declarations and remove them...
from rollup.
@yairEO that doesn't sound like the same issue as was fixed here. Could you open another issue with some sample code that reproduces the problem you're seeing?
from rollup.
@eventualbuddha - sure, I will do that, hold on. But with the same title as this..?
Seems like the title of this issue should be more specific
opened new issue - #331
from rollup.
Related Issues (20)
- Replace glob.sync by globSync in code example HOT 4
- CJS re-export regression with externalLiveBindings: false HOT 1
- NodeJS Core Dump on Specific Syntax Error (`Prop::Assign`) HOT 9
- Missing known globals: WeakRef, FinalizationRegistry, AggregateError.
- Default option for hashCharacters is not adblock-safe HOT 1
- Assistance with Rollup export functions & default.
- Support for 32-bit Linux (x86/ia32)
- onLog documentation is lacking something HOT 2
- Provide format info in output.chunkFileNames callback HOT 1
- Why is rollup creating an additional file of just exports from my entry file? HOT 4
- When I use format: "es" & sourcemap: false, bundle.write outputs an es module and a systemjs module with a sourcemap HOT 1
- What has been upgraded βterser: 5.27.3β HOT 1
- Exceptional performance of `namespace import` object values
- Cannot figure out a good workflow for a Shopify site...
- Setting `moduleSideEffects: false` removes side effectful getter inside a exported function since 4.9.2 HOT 2
- Rollup incorrectly merging ESM and CJS modules resulting in missing exports
- Treeshake dynamic import of modules
- RollupError: Unexpected token `.`. Expected * for generator, private key, identifier or async HOT 3
- [dir] placeholder for `output.assetFileNames` HOT 3
- I get loads of 'Circular dependency' errors when bundling 'npm link' symlinked modules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rollup.