Skip to content

Commit

Permalink
fix(metadata): remove reflect-metadata from the bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Noémi Salaün committed Sep 28, 2017
1 parent cb4d885 commit 7657964
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/decorator/deserialize-field-name.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'reflect-metadata';
import { METADATA_CUSTOM_FIELDS } from './field-name';

/**
Expand Down
1 change: 1 addition & 0 deletions src/decorator/field-name.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'reflect-metadata';
import { METADATA_DESERIALIZE_FIELD_NAME } from './deserialize-field-name';

/**
Expand Down
1 change: 1 addition & 0 deletions src/registry.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'reflect-metadata';
import { Class, Instantiable } from './class';
import { METADATA_PARENT } from './decorator/parent';
import { ParentOptions } from './decorator/parent-options';
Expand Down
1 change: 1 addition & 0 deletions webpack.config.umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
libraryTarget: 'umd',
library: 'serializer'
},
externals: ['reflect-metadata'],
devtool: 'source-map',
module: {
rules: [{
Expand Down

0 comments on commit 7657964

Please sign in to comment.