UNPKG

@omnia/tooling-vue

Version:

Used to bundle and serve manifests web component that build on Vue framework.

31 lines (30 loc) 949 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const $ = tslib_1.__importStar(require("../variables")); var path = require('path'); function default_1(treeshaking) { var tsLoaderOptions = { happyPackMode: true, transpileOnly: true }; if (treeshaking) { tsLoaderOptions.configFile = path.resolve(__dirname, "../config/tsconfig.es2015.json"); } return [{ test: /\.ts$/, use: [ { loader: path.resolve(__dirname, $.isExtensionEnv ? './esbuild-custom-loader.js' : './esbuild-custom-loader.ts'), }, { loader: 'esbuild-loader', options: { loader: 'ts', target: 'es2022' }, } ] }]; } exports.default = default_1;