UNPKG

webpack-typescript-builder

Version:

Webpack config builder for typescript, styles (css and sass), fonts and images.

25 lines (24 loc) 770 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const ts_import_plugin_1 = __importDefault(require("ts-import-plugin")); exports.typescript = { test: /\.(ts|tsx)?$/, use: { loader: "ts-loader", options: { allowTsInNodeModules: true, compilerOptions: { module: "es2015", }, experimentalWatchApi: true, getCustomTransformers: () => ({ before: [ts_import_plugin_1.default()], }), onlyCompileBundledFiles: true, transpileOnly: true, }, }, };