Skip to content

Commit f38267b

Browse files
committed
fix(bridge): add implicit dependencies
1 parent a8a761f commit f38267b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@
1616
"@nuxt/nitro": "^0.10.0",
1717
"@nuxt/postcss8": "^1.1.3",
1818
"@vue/composition-api": "^1.2.2",
19+
"acorn": "^8.5.0",
20+
"estree-walker": "^3.0.0",
1921
"fs-extra": "^10.0.0",
22+
"magic-string": "^0.25.7",
2023
"node-fetch": "^3.0.0",
2124
"nuxi": "^0.10.0",
2225
"nuxt-swc": "^0.1.0",
2326
"nuxt-vite": "^0.2.4",
2427
"pathe": "^0.2.0",
25-
"ufo": "^0.7.9"
28+
"ufo": "^0.7.9",
29+
"unplugin": "^0.2.16"
2630
},
2731
"devDependencies": {
2832
"@types/fs-extra": "^9.0.13",

src/async-loading.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Based on https://github.com/webpack/webpack/blob/v4.46.0/lib/node/NodeMainTemplatePlugin.js#L81-L191
22

33
import type { Compiler } from 'webpack'
4-
import Template from 'webpack/lib/Template'
54

65
export class AsyncLoadingPlugin {
76
apply (compiler: Compiler) {
7+
const Template = require('webpack/lib/Template')
88
compiler.hooks.compilation.tap('AsyncLoading', (compilation) => {
99
const mainTemplate = compilation.mainTemplate
1010
mainTemplate.hooks.requireEnsure.tap(

0 commit comments

Comments
 (0)