You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromMsg=` from ${config.sys.path.relative(config.rootDir,importer)}`;
38
-
}
14
+
if(importee.endsWith('/')){
15
+
importee=importee.slice(0,-1);
16
+
}
39
17
40
-
constdiagnostic=buildError(builtCtx.diagnostics);
41
-
diagnostic.header=`Bundling Node Builtin${globals.has(importee) ? ` and Global` : ``}`;
42
-
diagnostic.messageText=`For the import "${importee}" to be bundled${fromMsg}, ensure the "rollup-plugin-node-builtins" plugin${globals.has(importee) ? ` and "rollup-plugin-node-globals" plugin` : ``} is installed and added to the stencil config plugins. Please see the bundling docs for more information.`;
18
+
if(builtIns.has(importee)){
19
+
letfromMsg='';
20
+
if(importer){
21
+
fromMsg=` from ${config.sys.path.relative(config.rootDir,importer)}`;
43
22
}
23
+
constdiagnostic=buildError(builtCtx.diagnostics);
24
+
diagnostic.header=`Bundling Node Builtin or Global`;
25
+
diagnostic.messageText=`For the import "${importee}" to be bundled${fromMsg}, ensure the "rollup-plugin-node-polyfills" plugin is installed and added to the stencil config plugins. Please see the bundling docs for more information.
26
+
Further information: https://stenciljs.com/docs/module-bundling`;
0 commit comments