From d8bd24fc395e50333e05e586f8d3dd76c831d72a Mon Sep 17 00:00:00 2001 From: Liu Zhanhong <275368990@qq.com> Date: Tue, 14 Mar 2017 19:18:12 -0700 Subject: [PATCH] BREAKING: Remove @provides support from packager Summary: see https://github.com/facebook/react-native/commit/d82f2553fb0da40b02ca5515767211105e2eec07 Closes https://github.com/facebook/react-native/pull/12355 Differential Revision: D4710001 Pulled By: davidaurelio fbshipit-source-id: 1c2225fa3bd2881c3eaedfd02514c29b920948b6 --- .../metro-bundler/src/ModuleGraph/worker/transform-module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/metro-bundler/src/ModuleGraph/worker/transform-module.js b/packages/metro-bundler/src/ModuleGraph/worker/transform-module.js index c451e03f..1dca4e55 100644 --- a/packages/metro-bundler/src/ModuleGraph/worker/transform-module.js +++ b/packages/metro-bundler/src/ModuleGraph/worker/transform-module.js @@ -82,7 +82,7 @@ function transformModule( callback(null, { code, file: filename, - hasteID: annotations.providesModule || annotations.provide || null, + hasteID: annotations.providesModule || null, transformed, type: options.polyfill ? 'script' : 'module', });