fix(core): update
This commit is contained in:
parent
6b604b0927
commit
68d4507bc5
284
package-lock.json
generated
284
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user