fix(core): update

This commit is contained in:
2019-01-26 14:05:00 +01:00
parent 6b604b0927
commit 68d4507bc5
3 changed files with 78 additions and 213 deletions

View File

@ -1,4 +1,5 @@
import * as plugins from './parcel-plugin-wrapper.plugins';
import '@gitzone/tsrun';
module.exports = bundler => {
const readAsset = pathArg => {
@ -35,7 +36,7 @@ ${footer}`
bundler.on('bundled', async bundleArg => {
try {
const CWD = process.cwd();
const processFn = require(plugins.path.join(CWD, '.assetWrapper.js'));
const processFn = require(plugins.path.join(CWD, '.assetWrapper.ts'));
if (processFn && typeof processFn === 'function') {
await processAsset(bundleArg, processFn);
}