web-social-share
Advanced tools
Comparing version 8.0.0 to 8.0.1
{ | ||
"name": "web-social-share", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "A Web Component to share urls and text on social networks", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.js", | ||
"module": "dist/websocialshare/websocialshare.esm.js", | ||
"es2015": "dist/esm/index.js", | ||
@@ -8,0 +8,0 @@ "es2017": "dist/esm/index.js", |
@@ -67,2 +67,11 @@ # Web Social Share | ||
### NodeJS | ||
Due to an [open issue in Stencil regarding ESM entry points](https://github.com/ionic-team/stencil/issues/2826), ESM resolution support in NodeJS for this package has been manually fixed by overriding the `module` field in _package.json_. As long as your dev server / bundler supports the `module` field, you should be able to `import` the component like this: | ||
```js | ||
import 'web-social-share'; | ||
``` | ||
> _Note: as noted in the linked issue, one caveat is that this entry file uses template literals inside dynamic imports (e.g. `import(${x})`) so make sure this syntax is also supported by your environment. For example, Rollup has [**@rollup/plugin-dynamic-import-vars**](https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars). | ||
## Getting Started | ||
@@ -69,0 +78,0 @@ |
406541
228