UNPKG

wordpress-enqueue-chunks-webpack-plugin

Version:

A webpack plugin that manages registering and enqueing split chunks in a wordpress environment

16 lines (14 loc) 324 B
const tsc = require('typescript'); const tsconfig = require('../../tsconfig.json'); module.exports = { process(src, path) { if (!path.endsWith('.ts')) { return src; } return tsc.transpile( src, tsconfig.compilerOptions, path, ); }, };