Comments (5)
@yairEO sounds like you need @rollup/plugin-commonjs
from deepmerge.
That is correct. The intended way to import this library using ES modules is:
import deepmerge from 'deepmerge'
from deepmerge.
Sorry, I read your initial post too quickly. Your first example should work. What Rollup configuration were you using?
import deepmerge from "deepmerge"
and import deepmerge_1 from "deepmerge"
should be equivalent.
from deepmerge.
thanks for reply.
i found that worked.(import deepmerge_1 from "deepmerge"), anyway ,that is ok.
here is my project:
https://github.com/youwi/sync-json-file/blob/master/rollup.config.js,
i will find out what happen ...when i am free.
from deepmerge.
I get an error when trying to import this script (4.2.2
) via Rollup:
rollup v2.33.0
bundles src/knobs.js → knobs.min.js...
[!] Error: 'default' is not exported by node_modules/deepmerge/dist/cjs.js, imported by src/knobs.js
from deepmerge.
Related Issues (20)
- How to use one object as target HOT 8
- Deno? HOT 7
- High CPU usage with large object merge HOT 1
- use recursive partial for type definitions HOT 1
- Will we ever see the v5? HOT 4
- When a particular property of the source object is undefined while the target one has a value, the value will be override by undefined HOT 2
- How to delete an element from an array with deepmerge. HOT 1
- How to avoid array concatenation HOT 18
- `is-mergeable-object` is a `devDependency` but used in `index.js` HOT 7
- An error occuren when merge axios config: config.signal.addEventListener is not a function HOT 3
- add ESM, support for module and browser HOT 5
- Possible to remove duplicate objects in arrays? HOT 1
- deepmerge_1.default) is not a function (No Webpack) HOT 4
- A class instance in an array in an object get formed into an object.
- It need filter on merge
- Add a way to merge into existing target object, just like Object.assign
- Feature Request: Passing a collision callback for colliding props
- [Feature request] Pass parent values to `customMerge()`
- When merging arrays the target defaults to empty array
- Doesn't play nice with React 19 RC
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 deepmerge.