diff --git a/packages/astro/src/external.ts b/packages/astro/src/external.ts index 7a77f7aa3..3269b2c76 100644 --- a/packages/astro/src/external.ts +++ b/packages/astro/src/external.ts @@ -9,27 +9,19 @@ const pkg = require('../package.json'); */ // These packages SHOULD be built by `esinstall` -const allowList = new Set([ - 'astro-prism', - 'prismjs', - 'shorthash' -]); +const allowList = new Set(['astro-prism', 'prismjs', 'shorthash']); const isAstroRenderer = (name: string) => { return name.startsWith(`@astrojs/renderer-`); -} +}; // These packages should NOT be built by `esinstall` // But might not be explicit dependencies of `astro` -const denyList = [ - 'prismjs/components/index.js', - '@vue/server-renderer' -]; - +const denyList = ['prismjs/components/index.js', '@vue/server-renderer']; export default Object.keys(pkg.dependencies) // Filter out packages that should be loaded threw Snowpack - .filter(name => { + .filter((name) => { // Explicitly allowed packages should NOT be external if (allowList.has(name)) return false; // Astro renderers should NOT be external diff --git a/packages/astro/test/benchmark/build-cached.json b/packages/astro/test/benchmark/build-cached.json index 57f8ad38f..d0ec5912d 100644 --- a/packages/astro/test/benchmark/build-cached.json +++ b/packages/astro/test/benchmark/build-cached.json @@ -1,4 +1,4 @@ { "name": "Snowpack Example Build Cached", "time": 8496 -} \ No newline at end of file +} diff --git a/packages/astro/test/benchmark/build-uncached.json b/packages/astro/test/benchmark/build-uncached.json index d7976d926..101621c72 100644 --- a/packages/astro/test/benchmark/build-uncached.json +++ b/packages/astro/test/benchmark/build-uncached.json @@ -1,4 +1,4 @@ { "name": "Snowpack Example Build Uncached", "time": 16200 -} \ No newline at end of file +} diff --git a/packages/astro/test/benchmark/dev-server-cached.json b/packages/astro/test/benchmark/dev-server-cached.json index e28cc05f4..16eb8a471 100644 --- a/packages/astro/test/benchmark/dev-server-cached.json +++ b/packages/astro/test/benchmark/dev-server-cached.json @@ -1,4 +1,4 @@ { "name": "Snowpack Example Dev Server Cached", "time": 1229 -} \ No newline at end of file +} diff --git a/packages/astro/test/benchmark/dev-server-uncached.json b/packages/astro/test/benchmark/dev-server-uncached.json index b86393f98..c0d72650d 100644 --- a/packages/astro/test/benchmark/dev-server-uncached.json +++ b/packages/astro/test/benchmark/dev-server-uncached.json @@ -1,4 +1,4 @@ { "name": "Snowpack Example Dev Server Uncached", "time": 3913 -} \ No newline at end of file +}