fix(core): update

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

284
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -20,5 +20,7 @@
"tslint": "^5.11.0", "tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0" "tslint-config-prettier": "^1.15.0"
}, },
"dependencies": {} "dependencies": {
"@gitzone/tsrun": "^1.1.17"
}
} }

View File

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