diff --git a/lib/index.js b/lib/index.js index 8e0d78e..06191e0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -7,6 +7,8 @@ module.exports = async bundler => { : Array.from(bundle.childBundles); for (const bundleItem of bundles) { + if (bundleItem.type !== 'html') continue; + const importsManager = new ImportsManager(bundleItem); importsManager.updateEntryFileImports(); importsManager.wrapImportFilesCode(); diff --git a/package-lock.json b/package-lock.json index 85b099f..10f169e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "parcel-plugin-gas-imports", - "version": "1.0.0", + "version": "1.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a3ee93a..2ce5674 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parcel-plugin-gas-imports", - "version": "1.0.2", + "version": "1.0.3", "description": "Parcel plugin that enables bundling of Google App Script HTML.", "main": "./lib/index.js", "scripts": {