Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bundle.js:1 Uncaught ReferenceError: exports is not defined
- {
- "compilerOptions": {
- "target": "es5",
- "module": "es2015",
- "moduleResolution": "node",
- "sourceMap": true,
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "lib": ["es2015", "dom"],
- "noImplicitAny": true,
- "suppressImplicitAnyIndexErrors": true
- },
- "files": [
- "src/main.ts"
- ],
- "angularCompilerOptions": {
- "genDir": "aot",
- "skipMetadataEmit" : true
- },
- "exclude": [
- "node_modules",
- "bower_components",
- "typings/main",
- "typings/main.d.ts"
- ]
- }
- import { platformBrowser } from '@angular/platform-browser';
- import { AppModuleNgFactory } from '../aot/src/app/app.module.ngfactory';
- console.log('Running AOT compiled');
- platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
- {
- "compilerOptions": {
- "target": "es5",
- "module": "es2015",
- "moduleResolution": "node",
- "sourceMap": true,
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "lib": ["es2015", "dom"],
- "noImplicitAny": true,
- "suppressImplicitAnyIndexErrors": true
- },
- "files": [
- "src/main.ts"
- ],
- "angularCompilerOptions": {
- "genDir": "aot",
- "skipMetadataEmit" : true
- },
- "exclude": [
- "node_modules",
- "bower_components",
- "typings/main",
- "typings/main.d.ts"
- ]
- }
- import rollup from 'rollup'
- import nodeResolve from 'rollup-plugin-node-resolve'
- import commonjs from 'rollup-plugin-commonjs';
- import uglify from 'rollup-plugin-uglify'
- export default {
- entry: 'src/main.js',
- dest: 'bundle.js', // output a single application bundle
- sourceMap: false,
- format: 'iife',
- onwarn: function(warning) {
- // Skip certain warnings
- // should intercept ... but doesn't in some rollup versions
- if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; }
- // console.warn everything else
- console.warn( warning.message );
- },
- plugins: [
- nodeResolve({jsnext: true, module: true}),
- commonjs({
- include: 'node_modules/rxjs/**',
- }),
- uglify()
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement