Try something else with webpack

This commit is contained in:
Megan Rogge
2024-11-13 16:55:58 -06:00
parent 4d2352711a
commit 69131e6055

View File

@@ -23,15 +23,6 @@ module.exports = withDefaults({
extensions: ['.ts', '.js'] // support ts-files and js-files
},
plugins: [
// Handle dynamic imports from the autocomplete directory
new webpack.ContextReplacementPlugin(
// The (\\|\/) piece accounts for path separators in *nix and Windows
/\.\/autocomplete$/,
path.resolve(__dirname, 'autocomplete'),
{
// Include only .js files
'./': /\.js$/
}
)
new webpack.IgnorePlugin({ resourceRegExp: /\.\/autocomplete$/, })
]
});