From e7316b9b730f6c81c57360914b7f1e03a509e778 Mon Sep 17 00:00:00 2001 From: Daniel Muller Date: Wed, 1 Apr 2020 00:23:12 +0000 Subject: [PATCH] Simple repro of ts_project unable to resolve files not in bazel-out --- examples/react_webpack/BUILD.bazel | 11 ----------- examples/react_webpack/index.tsx | 2 +- examples/react_webpack/{styles.scss => styles.css} | 0 3 files changed, 1 insertion(+), 12 deletions(-) rename examples/react_webpack/{styles.scss => styles.css} (100%) diff --git a/examples/react_webpack/BUILD.bazel b/examples/react_webpack/BUILD.bazel index 2a834eebd4..46ef042aba 100644 --- a/examples/react_webpack/BUILD.bazel +++ b/examples/react_webpack/BUILD.bazel @@ -1,18 +1,7 @@ load("@npm//http-server:index.bzl", "http_server") -load("@npm//sass:index.bzl", "sass") load("@npm//webpack-cli:index.bzl", webpack = "webpack_cli") load("@npm_bazel_typescript//:index.bzl", "ts_project") -sass( - name = "styles", - outs = ["styles.css"], - args = [ - "$(execpath styles.scss)", - "$(execpath styles.css)", - ], - data = ["styles.scss"], -) - ts_project( deps = [ "@npm//@types", diff --git a/examples/react_webpack/index.tsx b/examples/react_webpack/index.tsx index 5fae25ea06..a72406f8af 100644 --- a/examples/react_webpack/index.tsx +++ b/examples/react_webpack/index.tsx @@ -5,4 +5,4 @@ import * as styles from "./styles.css"; ReactDOM.render(

Hello, world!

, document.getElementById("root") -); \ No newline at end of file +); diff --git a/examples/react_webpack/styles.scss b/examples/react_webpack/styles.css similarity index 100% rename from examples/react_webpack/styles.scss rename to examples/react_webpack/styles.css