Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@invisionapp/dsm-storybook

Package Overview
Dependencies
Maintainers
11
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invisionapp/dsm-storybook

Provisioned by RUDI

  • 0.0.17
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
457
increased by32.08%
Maintainers
11
Weekly downloads
 
Created
Source

dsm-storybook

Provisioned by RUDI

Configuration

Webpack:

in webpack.config.js we are using:

libraryTarget: 'umd',
umdNamedDefine: true

so our library output will be with umd syntax. umdNameDefine: true will name the amd module of the umd build with the library name.

https://webpack.js.org/configuration/output/

https://webpack.js.org/guides/author-libraries/#expose-the-library

https://tomasalabes.me/blog/web-development/2016/04/30/Webpack-Series-Part-1.html

differences between amd, commonjs and amd: https://www.davidbcalhoun.com/2014/what-is-amd-commonjs-and-umd/

Babel:

in .babelrc we are using:

{
 ...
  "plugins": ["add-module-exports"],
 ...
}

that removes the need to use ".default" to get export default functions.

https://www.npmjs.com/package/babel-plugin-add-module-exports

we should consider if we need to use modules: false in babel. right now it is default (auto)

https://babeljs.io/docs/en/babel-preset-env

FAQs

Package last updated on 02 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc