2.1.8 • Published 5 years ago

ts-import-pearls v2.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

ts-import-pearls

Usage

with ts-loader

// webpack.config.js
const pearlsTransformers = require("ts-import-pearls")

module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.(jsx|tsx|js|ts)$/,
        loader: "ts-loader",
        options: {
          transpileOnly: true,
          getCustomTransformers: () => ({
            before: [pearlsTransformers(/** options */)],
          }),
          compilerOptions: {
            module: "es2015",
          },
        },
        exclude: /node_modules/,
      },
    ],
  },
  // ...
}
const pearlsTransformers = require("ts-import-pearls")
// with less
pearlsTransformers({ style: true })
// with css
pearlsTransformers({ style: "css" })
// without style
pearlsTransformers()
2.1.9

5 years ago

2.1.8

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago