Skip to content

Commit bad6e1e

Browse files
johnjenkinsJohn Jenkins
and
John Jenkins
authoredMar 12, 2025
fix(loader): remove package.json as it interferes with main (#6200)
Co-authored-by: John Jenkins <john.jenkins@nanoporetech.com>
1 parent e2965e5 commit bad6e1e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed
 

‎src/compiler/output-targets/output-lazy-loader.ts

-18
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,6 @@ const generateLoader = async (
2727
}
2828

2929
const es5HtmlElement = await getClientPolyfill(config, compilerCtx, 'es5-html-element.js');
30-
31-
const packageJsonContent = JSON.stringify(
32-
{
33-
name: config.fsNamespace + '-loader',
34-
private: true,
35-
typings: './index.d.ts',
36-
module: './index.js',
37-
main: './index.cjs.js',
38-
'jsnext:main': './index.es2017.js',
39-
es2015: './index.es2017.js',
40-
es2017: './index.es2017.js',
41-
unpkg: './cdn.js',
42-
},
43-
null,
44-
2,
45-
);
46-
4730
const polyfillsEntryPoint = join(es2017Dir, 'polyfills/index.js');
4831
const polyfillsExport = `export * from '${relative(loaderPath, polyfillsEntryPoint)}';`;
4932

@@ -72,7 +55,6 @@ const generateLoader = async (
7255
const indexDtsPath = join(loaderPath, 'index.d.ts');
7356

7457
await Promise.all([
75-
compilerCtx.fs.writeFile(join(loaderPath, 'package.json'), packageJsonContent),
7658
compilerCtx.fs.writeFile(join(loaderPath, 'index.d.ts'), generateIndexDts(indexDtsPath, outputTarget.componentDts)),
7759
compilerCtx.fs.writeFile(join(loaderPath, 'index.js'), indexContent),
7860
compilerCtx.fs.writeFile(join(loaderPath, 'index.cjs.js'), indexCjsContent),

0 commit comments

Comments
 (0)
Failed to load comments.