瀏覽代碼

Move the index.js file to index.template.js to clarify it is a template.

Jason Grout 4 年之前
父節點
當前提交
72d4c39501

+ 1 - 1
examples/federated/core_package/bootstrap.js

@@ -110,6 +110,6 @@ void (async function bootstrap() {
 
   // Now that all federated containers are initialized with the main
   // container, we can import the main function.
-  let main = (await import('./index.out.js')).main;
+  let main = (await import('./index.js')).main;
   window.addEventListener('load', main);
 })();

+ 0 - 0
examples/federated/core_package/index.js → examples/federated/core_package/index.template.js


+ 2 - 2
examples/federated/core_package/webpack.config.js

@@ -48,7 +48,7 @@ for (const key of jlab.extensions) {
 }
 
 // Create the entry point file.
-const source = fs.readFileSync('index.js').toString();
+const source = fs.readFileSync('index.template.js').toString();
 const template = Handlebars.compile(source);
 const extData = {
   jupyterlab_extensions: extensions,
@@ -56,7 +56,7 @@ const extData = {
 };
 const result = template(extData);
 
-fs.writeFileSync(path.join(buildDir, 'index.out.js'), result);
+fs.writeFileSync(path.join(buildDir, 'index.js'), result);
 
 // Make a bootstrap entrypoint
 const entryPoint = path.join(buildDir, 'bootstrap.js');