npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

webpack-modular-typescript-import

v0.0.1

Published

modular-typescript-import for webpack

Downloads

6

Readme

webpack-modular-typescript-import Build Status

modular-typescript-import for webpack

Install

$ npm install --save webpack-modular-typescript-import

# or

$ yarn add webpack-modular-typescript-import

Usage

{
	loader: 'webpack-modular-typescript-import',
	options: {
		/*
			moduleName: 'antd',
			components: 'lib',
			style: 'css',
			camel2Dash: true,
		*/
		style: false
	}
}

Before:

$ webpack
Hash: 22832b19c031baddc417
Version: webpack 2.2.0
Time: 5979ms
    Asset     Size  Chunks                    Chunk Names
bundle.js  4.42 MB       0  [emitted]  [big]  main
  [18] ./~/antd/lib/icon/index.js 1.59 kB {0} [built]
 [445] ./~/antd/lib/index.js 10.8 kB {0} [built]
 [508] ./~/antd/lib/steps/index.js 1.64 kB {0} [built]
 [509] ./~/antd/lib/switch/index.js 2.5 kB {0} [built]
 [517] ./~/antd/lib/table/index.js 338 bytes {0} [built]
 [519] ./~/antd/lib/tabs/index.js 8.02 kB {0} [built]
 [521] ./~/antd/lib/tag/index.js 5.78 kB {0} [built]
 [522] ./~/antd/lib/time-picker/index.js 5.53 kB {0} [built]
 [524] ./~/antd/lib/timeline/index.js 518 bytes {0} [built]
 [526] ./~/antd/lib/transfer/index.js 17.2 kB {0} [built]
 [530] ./~/antd/lib/tree-select/index.js 4 kB {0} [built]
 [531] ./~/antd/lib/tree/index.js 3.1 kB {0} [built]
 [534] ./~/antd/lib/upload/index.js 484 bytes {0} [built]
 [536] ./~/antd/lib/version/index.js 195 bytes {0} [built]
 [961] ./index.tsx 127 bytes {0} [built]
    + 947 hidden modules

After:

$ webpack
{ style: false }

const Button = require('antd/lib/button')
Hash: 6ce8c0b756528832b14c
Version: webpack 2.2.0
Time: 887ms
    Asset    Size  Chunks             Chunk Names
bundle.js  210 kB       0  [emitted]  main
  [25] ./~/babel-runtime/helpers/defineProperty.js 540 bytes {0} [built]
  [26] ./~/babel-runtime/helpers/extends.js 544 bytes {0} [built]
  [40] ./~/classnames/index.js 1.1 kB {0} [built]
  [45] ./~/react/react.js 56 bytes {0} [built]
  [58] ./~/omit.js/index.js 244 bytes {0} [built]
  [65] ./~/antd/lib/button/index.js 503 bytes {0} [built]
  [66] ./~/antd/lib/button/button-group.js 1.96 kB {0} [built]
  [67] ./~/antd/lib/button/button.js 7.75 kB {0} [built]
  [68] ./~/antd/lib/icon/index.js 1.59 kB {0} [built]
  [75] ./~/babel-runtime/helpers/classCallCheck.js 208 bytes {0} [built]
  [76] ./~/babel-runtime/helpers/inherits.js 1.11 kB {0} [built]
  [77] ./~/babel-runtime/helpers/possibleConstructorReturn.js 542 bytes {0} [built]
 [116] ./~/prop-types/index.js 1.08 kB {0} [built]
 [119] ./~/react/lib/React.js 3.32 kB {0} [built]
 [130] ./index.tsx 65 bytes {0} [built]
    + 116 hidden modules

License

MIT © bang