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

ts-import-plugin

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-import-plugin - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

36

package.json
{
"name": "ts-import-plugin",
"version": "1.0.3",
"version": "1.0.4",
"description": "babel-plugin-import TypeScript version",

@@ -14,5 +14,5 @@ "main": "index.js",

"cover": "rm -rf ./coverage ./.nyc_output && nyc --reporter=html --reporter=lcov --exclude=node_modules --exclude=test mocha",
"lint": "tslint src & standard \"test/*.js\" \"./*.js\"",
"lint": "tslint -c ./tslint.json ./src/**/*.ts & standard \"test/*.js\" \"./*.js\"",
"prepare": "npm run build",
"start": "rm -rf dist && NODE_ENV=production webpack --optimize-minimize",
"start": "rm -rf dist && NODE_ENV=production webpack",
"test": "mocha",

@@ -33,26 +33,30 @@ "watch": "tsc -p ./src/tsconfig.json -w --diagnostics"

"devDependencies": {
"@types/chai": "^4.0.1",
"@types/lodash": "^4.14.68",
"@types/chai": "^4.0.2",
"@types/lodash": "^4.14.71",
"@types/mocha": "^2.2.41",
"@types/node": "^8.0.7",
"@types/react": "^15.0.33",
"@types/node": "^8.0.19",
"@types/react": "^16.0.0",
"@types/react-dom": "^15.5.1",
"antd": "^2.11.2",
"chai": "^4.0.2",
"antd": "^2.12.3",
"chai": "^4.1.0",
"coveralls": "^2.13.1",
"css-loader": "^0.28.4",
"extract-text-webpack-plugin": "^3.0.0",
"lodash": "^4.17.4",
"mocha": "^3.4.2",
"nyc": "^11.0.3",
"mocha": "^3.5.0",
"nyc": "^11.1.0",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"standard": "^10.0.2",
"ts-loader": "^2.2.1",
"ts-node": "^3.1.0",
"tslint": "^5.4.3",
"style-loader": "^0.18.2",
"ts-loader": "^2.3.2",
"ts-node": "^3.3.0",
"tslint": "^5.5.0",
"tslint-eslint-rules": "^4.1.1",
"webpack": "^3.0.0"
"webpack": "^3.4.1",
"webpack-bundle-analyzer": "^2.8.3"
},
"dependencies": {
"tslib": "^1.7.1",
"typescript": "^2.4.1"
"typescript": "^2.4.2"
},

@@ -59,0 +63,0 @@ "standard": {

@@ -9,2 +9,6 @@ [![npm version](https://badge.fury.io/js/ts-import-plugin.svg)](https://www.npmjs.com/package/ts-import-plugin)

webpack template `./webpack.config.js`, run: `npm start` to see the bundle analyzer.
![bundle-analyzer](./bundle.png)
# Why use this

@@ -25,3 +29,3 @@

# Useage
# Usage

@@ -60,25 +64,4 @@ ## With ts-loader

```js
// webpack.config.js
const tsImportPluginFactory = require('ts-import-plugin')
Due to https://github.com/s-panferov/awesome-typescript-loader/issues/447, `awesome-typescript-loader` is not working with any `TypeScript plugin`, include this one.
module.exports = {
// ...
module: {
rules: [
{
test: /\.(jsx|tsx|js|ts)$/,
loader: 'awesome-typescript-loader',
options: {
getCustomTransformers: () => ({
before: [ tsImportPluginFactory( /** options */) ]
})
}
}
]
},
// ...
}
```
## Options

@@ -85,0 +68,0 @@

Sorry, the diff of this file is not supported yet

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