@@ -27,23 +27,6 @@ const generateLoader = async (
27
27
}
28
28
29
29
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
-
47
30
const polyfillsEntryPoint = join ( es2017Dir , 'polyfills/index.js' ) ;
48
31
const polyfillsExport = `export * from '${ relative ( loaderPath , polyfillsEntryPoint ) } ';` ;
49
32
@@ -72,7 +55,6 @@ const generateLoader = async (
72
55
const indexDtsPath = join ( loaderPath , 'index.d.ts' ) ;
73
56
74
57
await Promise . all ( [
75
- compilerCtx . fs . writeFile ( join ( loaderPath , 'package.json' ) , packageJsonContent ) ,
76
58
compilerCtx . fs . writeFile ( join ( loaderPath , 'index.d.ts' ) , generateIndexDts ( indexDtsPath , outputTarget . componentDts ) ) ,
77
59
compilerCtx . fs . writeFile ( join ( loaderPath , 'index.js' ) , indexContent ) ,
78
60
compilerCtx . fs . writeFile ( join ( loaderPath , 'index.cjs.js' ) , indexCjsContent ) ,
0 commit comments