build: roll up to named .js files rather than 'index.js' (#19190)
PR Close #19190
This commit is contained in:
@ -3,9 +3,9 @@
|
||||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - the http service",
|
||||
"main": "./bundles/http.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/http.js",
|
||||
"es2015": "./esm2015/http.js",
|
||||
"typings": "./http.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -18,7 +18,7 @@ const globals = {
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/http/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/http/esm5/http.js',
|
||||
dest: '../../dist/packages-dist/http/bundles/http.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@angular/http/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/http-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ const globals = {
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/http/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/http/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/http/bundles/http-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
@ -19,7 +19,7 @@
|
||||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/http/testing"
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,7 @@
|
||||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "http.js",
|
||||
"flatModuleId": "@angular/http"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user