Skip to content

Commit

Permalink
build: add node-resolve plugin to fix html-parsed-element import
Browse files Browse the repository at this point in the history
Not sure if it has broader impacts, but at least it fixes the current
failing e2e tests
  • Loading branch information
haoqunjiang committed Aug 29, 2023
1 parent 1dc623e commit 9f1b87a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,7 @@ function createConfig(format, output, plugins = []) {
}

function resolveExternal() {
const treeShakenDeps = [
'source-map-js',
'@babel/parser',
'estree-walker',
'html-parsed-element'
]
const treeShakenDeps = ['source-map-js', '@babel/parser', 'estree-walker']

if (isGlobalBuild || isBrowserESMBuild || isCompatPackage) {
if (!packageOptions.enableNonBrowserBranches) {
Expand Down Expand Up @@ -273,7 +268,7 @@ function createConfig(format, output, plugins = []) {
...(format === 'cjs' ? [] : [polyfillNode()]),
nodeResolve()
]
: []
: [nodeResolve()]

return nodePlugins
}
Expand Down

0 comments on commit 9f1b87a

Please sign in to comment.