diff --git a/examples/webpack/example-builder.js b/examples/webpack/example-builder.js index 5b2df9b9e7..700dd7c748 100644 --- a/examples/webpack/example-builder.js +++ b/examples/webpack/example-builder.js @@ -13,7 +13,7 @@ const baseDir = dirname(fileURLToPath(import.meta.url)); const isCssRegEx = /\.css(\?.*)?$/; const isJsRegEx = /\.js(\?.*)?$/; -const importRegEx = /(?:^|\n)import .* from '(.*)';(?:\n|$)/g; +const importRegEx = /\simport .* from '([^']+)';\s/g; const isTemplateJs = /\/(jquery(-\d+\.\d+\.\d+)?|(bootstrap(\.bundle)?))(\.min)?\.js(\?.*)?$/; const isTemplateCss = /\/bootstrap(\.min)?\.css(\?.*)?$/;